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.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.