Home » Computers

Computers

The JavaScript Document Object

From the JavaScript point of view, the document object is generated automatically each time a page is loaded into a browser. 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.

No Comments »