javascript class by element name code example Example: js get element by class document.getElementsByClassName('Name');