This page lists and demistatis the use the of JavaScript Document Object.

Document.(method)

Description

open()

Opens the output stream, to a text document, so that it may be written to.

close()

Closes the output stream as well as the text document to prevent futhur writing.

write()

Addes text to the text document/webpage.

writeln()

Adds text to the document/webpage and then adds a new line after the text.

alinkcolor

Determines the color to be used on a webpage after the link has been activated.

anchors

Holds the anchors of the document inside of an Array so that it may be accessed by JavaScript.

applets

All Java Applet objects present on the webpage are held in an Array so that it may be accessed by JavaScript.

bgColor

Used to retrieve/change the back ground color of a webpage.

fgColor

Used to retrieve/change the foreground (color of the text) in the webpage.

cookie

Retrieves the cookie, if there is one, that is associated with the webpage.

domain

Retreves the current domain of the webpage.

embeds

Retreves an Array of objects that are embedded into the webpage.

forms

Retreves the forms of the webpage inside of an Array so that they may be edited, viewed or changed.

images

Retreves all of the images inside of the webpage and returns them inside of an Array so that they my be viewed/changed.

lastModified

Dispays when the document was last edited.

linkColor

Determines the color of links on the webpage.

links

Retreves all the links on the webpage in a Array so that they may be viewed, edited, or changed.

referrer

Retreves the past visted webpages so that it the programmer may determine how the user got to the current page.

title

Allows the programmer to view/change the current title of the webpage (ccorresponds with the <title> tag).

URL

Retreves the current URL of the webpage.

vlinColor

Allows the user to view/change the current color of the links recently visited by the user.

Code Output
code
Hello (basic table)
code