Javascript Reference
Categories: window

javascript window opener

@March 15, 2008, 1:22 a.m.
openerFirefox/Netscape/NN 3 IE 3 Chrome/Safari/DOM n/a  

Read/Write  

This is an object reference to the window (or frame) that used a window.open( ) method to generate the current window. This property allows subwindows to assemble references to objects, variables, and functions in the originating window. To access document objects in the creating window, a reference can begin with opener and work its way through the regular document object hierarchy from there, as shown in the left side of the following example statement. The relationship between the opening window and the opened window is not strictly parent-child. The term "parent" has other connotations in scripted window and frame references. IE's dialog windows (the showModalDialog( ) and showModelessDialog( ) windows) do not support this property. Values between the main and dialog windows must be passed at creation time and via the dialog window's returnValue property upon closing.

 
Example
 
opener.document.forms[0].importedData.value = document.forms[0].entry.value;
 
Value

window object reference.

 
Default

None.

order lipitor 20mg sale <a href="https://lipiws.top/">buy atorvastatin for sale</a> order lipitor 10mg online
Zhqsqr - 2 months

Powered by Linode.