The Javascript Document Object is the parent of html document. It is container for all HTML HEAD and BODY objects associated within the HTML tags of an HTML document.
Name | Description |
alinkColor | Specifies the alink color. |
anchors | An array containing an entry for each anchor in the document. |
applets | An array containing an entry for each applet in the document. |
bgColor | Specifies the bgcolor color. |
classes | Creates a Style object that can specify the styles of HTML tags with a specific CLASS attribute. |
cookie | Specifies a cookie. |
domain | Specifies the domain name of the server that served a document. |
embeds | An array containing an entry for each plug-in in the document. |
fgColor | Specifies the fourground color. |
formName | A separate property for each named form in the document. |
forms | An array a containing an entry for each form in the document. |
height | The height of the document, in pixels. |
images | An array containing an entry for each image in the document. |
lastModified | The time when the page was last modified. |
layers | Array containing an entry for each layer within the document. |
linkColor | Specifies the link color. |
links | An array containing an entry for each link in the document. |
plugins | An array containing an entry for each plug-in in the document. |
referrer | A string that specifies the URL of the calling document. |
tags | Creates a Style object that can specify the styles of HTML tags. |
title | Specifies the contents of the title string. |
URL | Specifies the complete URL of a document. |
vlinkColor | Specifies the vlink color. |
width | The width of the document, in pixels. |
Name | Description |
captureEvents | Sets the document to capture all events of the specified type. |
close | Closes an output stream and forces data to display. |
contextual | Uses contextual selection criteria to specify a Style object that can set the style of individual HTML tags. |
getSelection | Returns a string containing the text of the current selection. |
handleEvent | Invokes the handler for the specified event. |
open | Opens a stream to collect the output of write or writeln methods. |
releaseEvents | Sets the window or document to release captured events of the specified type, sending the event to objects further along the event hierarchy. |
routeEvent | Passes a captured event along the normal event hierarchy. |
write | Writes a string on the HTML page. |
writeln | Writes a string on the HTML page but add a carriage return to the end line. |