The document object
(Corresponds to the <body> tag)
|
Properties |
Methods |
Property |
What it is |
Method |
What it does |
anchors 1.1 |
array of all <a> anchors |
close() |
close 'stream' |
applets 1.1 |
array of all applets |
open() |
open 'stream' |
area |
a contained image map |
write() |
write to document |
bgColor, fgColor, linkColor, vlinkColor, alinkColor |
various colours |
writeln() |
cookie |
The value of a cookie |
captureEvents(), releaseEvents() 1.2 |
See part7 |
forms 1.1 |
array of forms |
handleEvent(), routeEvent() 1.2 |
embeds, plugins 1.1 |
array of plugins.. |
contextual() 1.2 |
contextual selection criteria are used
to specify a Style object |
images 1.1 |
array of images |
getSelection() 1.2 |
return current text selection |
domain 1.1 |
(domain name of server) |
|
links |
array of links |
|
|
title |
These should be intuitively obvious |
|
|
history |
|
|
lastModified |
|
|
referrer |
|
|
URL |
|
|
classes 1.2 |
contains style objects specifying HTML tag styles |
|
ids 1.2 |
id attributes of HTML tags |
|
layers 1.2 |
contains an entry for each layer |
|
tags 1.2 |
also specifies HTML tag styles! |
|
height, width 1.2 |
document dimensions in pixels |
|
all |
all the document components! |
|
activeElement, body, defaultCharset,
fileCreatedDate, fileModifiedDate, fileUpdatedDate
fileSize, frames, location, mimeType, nameProp
parentWindow , protocol, readyState,
scripts, security, selection, styleSheets
|
(Whew!) |
|
{all the event handlers}
|
These include:
onafterupdate, onbeforeupdate, onclick, ondblclick, ondragstart, onerrorupdate,
onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout,
onmouseover, onmouseup, onreadystatechange, onrowenter, onrowexit,onselectstart
|
|