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

Q1208 How can I detect a change of URL in my pop up window?

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

Q1208 How can I detect a change of URL in my pop up window?

If both pages are from the same server then in the popup window:

<body onUnload="opener.tellMomma()">

and in the opener window:

function tellMomma() {
   alert('Child changed');
}

var WinId = window.open('popup.htm')
if (!WinId.opener) WinId.opener = self;

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.