How do we get the DOM object in JavaScript?
How do we get the DOM object in JavaScript? Correct Answer getElementbyId()
The getElementbyId() is used to get the DOM object in JavaScript by simply calling that function associated with the HTML document. The object in this method gets referenced by the id name.