Visit Mozilla.org

DOM:window.opener

From MDC

« Gecko DOM Reference

Contents

[edit] Summary

Returns a reference to the window that opened this current window.

[edit] Syntax

objRef = window.opener 

[edit] Example

 if window.opener != indexWin {
     referToTop(window.opener);
 }

[edit] Notes

When a window is opened from another window, it maintains a reference to that first window as window.opener. If the current window has no opener, this method returns NULL.

[edit] Specification

DOM Level 0. Not part of any standard.