Dom methods
Friday, June 29, 2018
7:19 AM
[link]
Query
DOM 
Methods 
// Get the element with a specified ID: 
document . getElementById( "some-ID") ; 
Get all elements with a specified class name 
as array: 
document . getElementsByClassName ( "classname" ) ; 
Get all elements with a specified HTML tag as 
array: 
document .getElementsByTagName( "HTML tag") ; 