snippet library logo
in category
Javascript / Popups / Parent Checker for popup
Snippet details
ID: 123
Viewed: 1409
Added: 2002-04-25
Version:
View Demo

User Rated at:
Rate This:
Snippets in this catagory         
Show Printable Version
Checks to see if the parent that opened the popup is up, if not it will open it. Add code below to a popup.

General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: Jon Hanlon

<!---Head--->
<script language="Javascript">
function checkOpener() {
  if (!self.opener || self.opener.location.href.toLowerCase() != "www.mysite.com/mainpage.html") {
      window.open("www.mysite.com/mainpage.html")
  }
}
</script>

<!---Body--->


<body onload="checkOpener()">




No Reviews to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.