O'Reilly logo

Dynamic HTML: The Definitive Reference by Danny Goodman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required