Name
Document — represents an HTML document
Availability
Client-side JavaScript 1.0; enhanced in JavaScript 1.1 and in Navigator 4 and Internet Explorer 4
Inherits From
HTMLElement
Synopsis
window.document
documentProperties
Document inherits properties from HTMLElement and also defines numerous properties. Navigator 4 and Internet Explorer 4 both define a number of incompatible Document properties, used mostly for DHTML; they are listed separately after the generic properties:
- alinkColor
The color of activated links.
- anchors[]
The Anchors in a document. JavaScript 1.0; array elements are null prior to JavaScript 1.2.
- applets[]
The applets in a document. JavaScript 1.1.
- bgColor
The document background color.
- cookie
The cookie(s) of the document.
- domain
The security domain of a document. JavaScript 1.1.
- embeds[]
The objects embedded in a document. JavaScript 1.1.
- fgColor
The default text color.
- forms[]
The forms in a document.
- images[]
The images embedded in a document. JavaScript 1.1.
- lastModified
The modification date of a document.
- linkColor
The color of unfollowed links.
- links[]
The Link objects in a document.
- location
The URL of the current document. JavaScript 1.0; deprecated in JavaScript 1.1 in favor of Document.URL.
- plugins[]
The objects embedded in a document. JavaScript 1.1.
- referrer
The URL of the linked-from document. JavaScript 1.0; nonfunctional in Internet Explorer 3.
- title
The title of a document.
- URL
The URL of the current document. JavaScript 1.1.
- vlinkColor
The color of visited links.
Navigator 4 Properties ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access