Who's My Mum cried the Pop-up Window

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Who's My Mum cried the Pop-up Window

Post 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 :)
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post 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 :)
Post Reply