The
object represents the HTML document currently displayed by the browser. Its properties reflect the characteristics of the page, and allow script code to manipulate and react to different conditions. Among the most interesting properties are the Document
, anchors
, and links
collections, which represent all of the anchors, links, and forms respectively, on the page. The forms
object also supports some methods that can be used to change the HTML displayed by the browser. These methods duplicate much of the functionality that ASP provides, but differ in that the HTML manipulation is done after the document is transmitted from the server instead of before. When these methods are used, the server sends an HTML document with embedded script code, and the browser interprets it and displays the resulting HTML. The Document
object has no events.Document
This section covers the
object and it’s descendants, with one exception. One of the most used parts of the Document
object is the Document
collection of the Elements
's Document
object. This part of the object model is used when interacting with the elements of an HTML form, like buttons, text boxes, radio buttons, and so on, and is important enough to warrant its own section. We’ll cover the Form
collection and the Elements
object as soon as we’re through with the Element
object. Finally, when we cover the Document
, anchors
, and links
collections, we’ll also talk about the objects that make up these collections: forms
, Anchor
, and Link
.Form
So, without further ado, lets get right into it by talking about the methods that are part of the
object.Document