Page 1 of 1

Who's My Mum cried the Pop-up Window

Posted: Wed Dec 18, 2002 1:52 pm
by Gen-ik
It's probably just me not getting my brain into gear today but can anyone tell me how I can check the name (more helpful would be the location) of a pop-up windows parent.

Basically the pop-up needs to check it has been launched from a certain page for security reasons.

Any help would as always be very.. er.. helpful :)

Posted: Wed Dec 18, 2002 2:35 pm
by Gen-ik
Don't worry I've just figured it out..

Code: Select all

<script language="JavaScript">
var MyMum=window.opener.location;
</script>
..so easy when you know how :)