javascript window Description
window | Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM n/a | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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. Managing multiple windows can be tricky business because of the transient nature of cross-window references. Strict interpretation of HTML and XHTML standards frowns upon multiple windows, and many confused users may agree. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Although the W3C DOM Level 2 does not provide in-depth specifications for the window object (a window, after all, is outside the scope of document markup), it nevertheless indicates possible future hooks through what it calls "view" objects. Thus, the Netscape 6 document.defaultView property returns the document's window; the Netscape 6 window object also takes on the method of the ViewCSS object to gain the DOM's getComputedStyle( ) method. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The window object has been scriptable since the beginning and bears a considerable legacy of properties and methods. Many of these features are browser-specific, so observe compatibility ratings carefully before adopting a particular object feature. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Object Model Reference | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
window self top parent |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Object-Specific Event Handler Properties | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Powered by Linode.