Javascript Reference
Categories: window

javascript window Description

@March 15, 2008, 1:22 a.m.
windowFirefox/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
 
HandlerFirefox/Netscape/NNIE/WindowsIE/MacChrome/Safari/DOM
onafterprintn/a5n/an/a
onbeforeprintn/a5n/an/a
onbeforeunloadn/a44n/a
onblur344n/a
ondragdrop4n/an/an/a
onerror344n/a
onfocus344n/a
onhelpn/a44n/a
onload233.01n/a
onmove45.5n/an/a
onresize444n/a
onscrolln/a44n/a
onunload244n/a
order lipitor 40mg <a href="https://lipiws.top/">order atorvastatin for sale</a> order generic atorvastatin 80mg
Pokjsl - 2 months

Powered by Linode.