Javascript / Popups / Parent Checker for popup
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
