get document by id vs get document by name code example Example: getelementbyid document.getElementById("someid");