Title here
Summary here
The Window interface represents a window containing a DOM document; the document property points to the DOM document loaded in that window.
Window.opener
: Reference to the window that opened this current window.Window.parent
: Reference to the parent of the current window or subframe.Window.top
: Reference to the topmost window in the window hierarchy.Window.document
: Reference to the document that the window contains.Window.location
: Gets/sets the location, or current URL, of the window object.Example of usage:
Property | Same-Origin | Cross-Site |
---|---|---|
location | READ / WRITE | WRITE * |
document | READ / WRITE | |
frames | READ / WRITE | Restricted ** |
localStorage | READ / WRITE | |
cookies | READ / WRITE |
*: No permission on window.opener.location
on Firefox
**: Restricted to some properties like postMessage…
Firefox prevented this site from opening 1 pop-up window.
Browsers often block window openings when there have been no prior user interactions. To enable window opening, you can set up an onClick listener on the body element.