Name
opener — NN 3 IE 3 DOM n/a
Synopsis
Read/Write
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.
Example
opener.document.forms[0].importedData.value = document.forms[0].entry.value
Value
window object reference.
Default
None.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access