Mozilla.com

  1. MDC
  2. Main Page
  3. DOM
  4. window.opener
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Example
  4. 4. Notes
  5. 5. Specification
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Example
  4. 4. Notes
  5. 5. Specification

« Gecko DOM Reference

Summary

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

Syntax

objRef = window.opener 

Example

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

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.

Specification

DOM Level 0. Not part of any standard.

Page last modified 17:00, 5 Nov 2007 by Mgjbot

Files (0)