25.5. The Document Object

Each Window object contains a document property referring to the document contained in the window. The top-level document is obtained through window.document or, more commonly, simply by document.

Properties

alinkColor This string specifies the color of activated links. It is initially set by the ALINK attribute of BODY and can only be modified by scripts that run in the HEAD of the document (which are parsed before the BODY). After that, it is read-only.

anchors This property returns an array of Anchor objects, one for each occurrence of <A NAME=...> in the document.

applets This is an array of Applet objects, one for each occurrence of <APPLET ...> in the document. If the APPLET tag includes a MAYSCRIPT attribute, ...

Get Core Web Programming, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.