Published byModified over 4 years ago
Lifetimes Window object representing top-level window of browser exists as long as window exists Window is restored to default state when a new Document is loaded Variables exist persist only as long as the Document that defines them exists
Document Arrays Each of the arrays in the Document properties is an array of objects of the appropriate type Order corresponds to the order the objects appear in the HTML document HTML elements can be given a name attribute. The name can be used in the code instead of indexing into the array
Forms A Form object contains an array of elements. The individual elements correspond to the input elements in the form. Each element can have event handlers associated with it.
Links Array containing all the hypertext links in the document Link objects have same properties as Location object text property contains text between and Links can have event handlers associated with them onmouseover, onmouseout, onclick Hyperlinks can be dynamically modified
Anchors Anchors are named locations in an HTML document text property is string containing text between and
Miscellaneous Objects Screen object give access to information about display - height, width, colorDepth Location object represents a URL - href, protocol, host, pathname, search History object - script does not have access to URLs for previously visited web sites but can use back() and forward() to traverse them