One of many JavaScript HTML methods is getElementById(). A correct example and description of its use is shown in:
Fonte: ASSISTENTE TECNOLóGICO - PROGRAMADOR / Pref. Teresina/PI / 2016 / FCC