DOM Document Object Model
DOM is structure that is used to invoke the elements of a page or a script file. It is the hierarchy of structure that
a particular document have where we want to invoke the elements of that particular document.
For ex : <html>
<body>
<div id="maindiv">
</div>
</body>
</html>
When we want to manipulate the div we go through it first the document than its associated id
document.getElementById("maindiv").innerHTML="DOM applied successfully";
Main container is document where div resides so before calling div we should call the document
0 Comment(s)