Home / Programming MCQs / JavaScript MCQs / Question

M

Mr. Dubey • 51.17K Points
Coach

Q. How do we get the DOM object in JavaScript?

(A) getElementbyId()
(B) getObject()
(C) getElement()
(D) none of the mentioned
Explanation by: Mr. Dubey
The getElementbyId() is used to get the DOM object in JavaScript by simply calling that function associated with the HTML document.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.