getElementById with exception handling.
an HTML DOM id
the element with the given id, cast to the expected HTML element type
getElementById with exception handling.