Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q999 How can I avoid using opener.opener every time when referring to many variables in the window that opened the window that opened the current window?

irt.org | Knowledge Base | JavaScript | Window | Q999 [ previous next ]

Q999 How can I avoid using opener.opener every time when referring to many variables in the window that opened the window that opened the current window?

You can make a reference to the openers opener, and then use that each time:

<script language="JavaScript"><!--
var myTop = opener.opener;

alert(myTop.variableName);
//--></script>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.