Undertanding The Methods And Properties Of The JavaScript Document Object
In the JavaScript environment, each time a page is loaded into a browser, a new document object is generated. Like all objects, the document object exposes several methods and properties which can be accessed programmatically. One common document method is the write() method which is used to output a text string to an HTML document. The document object forms part of the Document Object Model (DOM), a logical hierarchy representing an HTML page and the elements it displays which makes it possible for scripting languages like JavaScript to access and manipulate elements.
