Which one returns the matching HTML element getElementBy...? code example
Example 1: getelementbyid
document.getElementById("someid");
Example 2: get document by id
var element = document.getElementById(id);
document.getElementById("someid");
var element = document.getElementById(id);