Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     getElementbyId()

    B.

     getObject()

    C.

     getElement()

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    The getElementbyId() is used to get the DOM object in JavaScript by simply calling that function associated with the HTML document.


Be The First To Comment