Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Window | Q1208 [ previous next ]

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;

©2018 Martin Webb