Function getElementById

  • getElementById with exception handling.

    Parameters

    • id: string

      an HTML DOM id

    Returns HTMLElement

    the element with the given id