Important JS and DOM concepts
- DOM object: anything that has a DOM representation
- Example: window, document, navigator, history
- JS Class name:
<div id="myDiv">
var myDiv = document.getElementById("myDiv");
alert(myDiv);
- Returns HTMLDivElement
- Examples: Window, Document, HTMLElement
- Link with the W3C DOM specs
Next