How do we get the DOM object in JavaScript?

How do we get the DOM object in JavaScript?
A. getElementbyId()
B. getObject()
C. getElement()
D. getNodeobject()
 
Answer: a
Explanation: 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.
 

Tìm kiếm

Back
Top