Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Naši dobrovolníci ještě tento článek do jazyka Čeština nepřeložili. Přidejte se a pomozte nám tuto práci dokončit!

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 (using Window.open), it maintains a reference to that first window as window.opener. If the current window has no opener, this method returns NULL.

Windows Phone browser does not support window.opener (tested with Microsoft Edge 25.10586.36.0).  It is also not supported in IE if the opener is in a different security zone.

In some browsers, a rel="noopener" attribute on the originating anchor tag will prevent the window.opener reference from being set.

Štítky a přispěvatelé do dokumentace

 Poslední aktualizace od: endemic,