Document

JavaScript 1.0+, ECMAScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax

Core client-side JavaScript object.

Description

The Document object represents a Web page that is displayed in a browser window, frame, or layer. An instance is created with each document that is loaded by the browser. This object has many properties and methods that vary greatly between JavaScript and JScript. Table 7.9 lists all the properties, methods, and event handlers associated with Document object.

Table 7.9. Properties, Methods, and Event Handlers Associated with the Document Object
Type Item Description
Properties alinkColor Color of activated link
  all Array of all HTML tags in the document
  anchors Array of Anchor objects
  applets ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.