|
June 8, 2000 The opener Property Tips: June 2000
Yehuda Shiran, Ph.D.
|
|
The opener property sets or retrieves a reference to the window that created the current window. When a source document opens a destination window by calling the open() method, the opener property (of the destination window's window object) specifies the window of the source document. This property persists across document unload in the opened window, so it can be accessed even if the URL in the new window is changed.
The
Notice that we must check if the opener window still exists before attempting to access its properties.
For a live demo of an application that uses the
People who read this tip also read these tips: Look for similar tips by subject: |