ryda518
Randy Orton=Legend Killer
With Javascript, in order to do anything with it, you will be interacting with the document object model(DOM) to manipulate HTML elements. The document object model is essentially the webpage being turned into an object that you can use javascript to interact with. For example if you have a div with an id of content div, you
must first select the div and then you choose how you want to manipulate it. One of the methods to select an item is document.getElementById.
document.getElementById("contentdiv").innerHTML = "blablabla";
in order to really learn about the DOM and how javascript interacts with it, it's best to get a book.
I actually am reading a book and what you explained is on the third chapter which talks about that. Makes sense.