Name

document — NN 2 IE 3 DOM 1

Synopsis

The document object represents both the content viewed in the browser window or frame and the other content of the HTML file loaded into the window or frame. Thus, all information from the HEAD portion of the file is also part of the document object. All references to elements must include a reference to the document object. The document object has no name other than its hard-wired object name: document.

Object Model Reference

NN

[window.]document

IE

[window.]document

Properties

activeElement

charset

expando

location

selection

alinkColor

cookie

fgColor

parentWindow

title

bgColor

defaultCharset

lastModified

readyState

URL

body

domain

linkColor

referrer

vlinkColor

Methods

captureEvents( )

getSelection( )

queryCommandText( )

clear( )

handleEvent( )

queryCommandValue( )

close( )

open( )

releaseEvents( )

createElement( )

queryCommandEnabled( )

routeEvent( )

createStyleSheet( )

queryCommandIndterm( )

write( )

elementFromPoint( )

queryCommandState( )

writeln( )

execCommand( )

queryCommandSupported( )

 

Collections/Arrays

all[]

children[]

forms[]

images[]

scripts[]

anchors[]

embeds[]

frames[]

links[]

styleSheets[]

applets[]

filters[]

ids[]

plugins[]

tags[]

classes[]

    

Event Handler Properties

Handler

NN

IE

DOM

onafterupdate

n/a

4

n/a

onbeforeupdate

n/a

4

n/a

onclick

n/a ...

Get Dynamic HTML: The Definitive Reference 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.