Name

window — NN 2 IE 3 DOM n/a

Synopsis

The window object represents the browser window or frame in which document content is displayed. The window object plays a vital role in scripting when scripts must communicate with document objects located in other frames or subwindows. Internet Explorer 4 includes a special kind of subwindow called a modal dialog window. Modal dialog windows have most, but not all, window object properties and methods available to them.

Object Model Reference

NN

window

self

top

parent

IE

window

self

top

parent

Properties

clientInformation

event

navigator

returnValue

 

closed

history

offscreenBuffering

screen

 

defaultStatus

innerHeight

opener

scrollbars

 

dialogArguments

innerWidth

outerHeight

self

 

dialogHeight

length

outerWidth

status

 

dialogLeft

location

pageXOffset

statusbar

 

dialogTop

locationbar

pageYOffset

toolbar

 

dialogWidth

menubar

parent

top

 

document

name

personalbar

  

Methods

alert( )

focus( )

resizeBy( )

back( )

forward( )

resizeTo( )

blur( )

handleEvent( )

routeEvent( )

captureEvents( )

home( )

scroll( )

clearInterval( )

moveBy( )

scrollBy( )

clearTimeout( )

moveTo( )

scrollTo( )

close( )

navigate( )

setInterval( )

confirm( )

open( )

setTimeout( )

disableExternalCapture( )

print( )

showHelp( )

enableExternalCapture( )

prompt( )

showModalDialog( ) ...

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.