The Window object is a JavaScript object created when a , , or tag is encountered.
Instances of this object can also be created by using the Window.open() method.
Methods/PropertiesDescription
alertLoads an alert dialog box with the text string passed.
backLoads the previous page in place of the window instance.
blurRemoves the focus from a window.
captureEventsSets the window to capture all events of a specified type.
clearIntervalClears the interval set with the setInterval method.
clearTimeoutClears the timeout set with the setTimeout method.
closeCloses the instance of the window.
confirmDisplays a confirmation dialog box.
disableExternalCaptureDisables external event capturing.
enableExternalCaptureEnables external event capturing for the pages loaded from other servers.
findDisplays a Find dialog box where the user can enter text to search the _current page.
focusAssigns the focus to the specified _window instance.
forwardLoads the next page in place of the window instance.
handleEventInvokes the handler for the event passed.
homeLoads the user's specified home page in place of the window instance.
moveByMoves the window by the amounts specified.
moveToMoves the window to the specified location.
openOpens a new instance of a window.
printInvokes the Print dialog box so the user can print the current window.
promptDisplays a prompt dialog box.
releaseEventsReleases the captured events of a specified type.
resizeByResizes the window by the specified amount.
resizeToResizes the window to the specified size.
routeEventPasses the events of a specified type to be handled natively.
scrollScrolls the document in the window to a specified location.
scrollByScrolls the document in the window by a specified amount.
scrollToScrolls the document, both width and height, in the window to a specified location.
setIntervalInvokes a function or evaluates an expression every time the number of milliseconds has passed.
setTimeoutInvokes a function or evaluates an expression when the number of milliseconds has passed.
stopStops the current window from loading other items within it.
closedSpecifies if the window instance has been closed.
defaultStatusIs the default message in the window's status bar.
documentReferences all the information about the document within this window. See the Document object for more information.
framesReferences all the information about the frames within this window. See the Frame object for more information.
historyReferences the URLs the user has _visited.
innerHeightContains the height of the display area of the current window in pixels.
innerWidthContains the width of the display area of the current window in pixels.
lengthRepresents the number of frames in the current window.
locationContains the current URL loaded into the window.
locationbarReference to the browser's location bar.
menubarReference to the browser's menu bar.
nameName of the window.
openerContains the name of the window from which a second window was opened.
outerHeightContains the height of the outer area of the current window in pixels.
outerWidthContains the width of the outer area of the current window in pixels.
pageXOffsetContains the x-coordinate of the current window.
pageYOffsetContains the y-coordinate of the current window.
parentReference to the upper most window that is displaying the current frame.
personalbarReference to the browser's personal bar.
scrollbarsReference to the browser's scroll bars.
selfReference for the current window.
statusReference to the message in the window's status bar.
statusbarReference to the browser's status bar.
toolbarReference to the browser's tool bar.
topReference to the upper most window that is displaying the current frame.
windowReference for the current window.
When using the close() and open() methods, you must take the instance's name when called within an event handler.