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 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.