How to make this code do a popunder?
Is there a way to change the coding so that this will be a popunder? (I know blur needs to be added somewhere, no idea where..)
Thanks in advance
--------------------------------------------
<**scrip**t>
//Close Window Script
//JOSH CARRICO
//This Script works near perfect for IE
//Netscape is a 50/50. I can get it down to the refresh and X buttons
//I tried to manipulate almost all of the window properties to see
//if I could detect it closing.....
function SetIt(){
//Need to store Page for Netscape Look Up
ThePage=document.location.href;
}
function JOSHSAYSGO6(){
if(document.all){
var tempX = event.clientX + document.body.scrollLeft;
var tempY = event.clientY + document.body.scrollTop;
//If mouse is over X will return very very large negative numbers
if(tempX<0&&tempY<0){
ItBClosed();
}
}else{
//Detects Back/Forward Buttons and Location Box Launching
ThisPage=document.location.href;
if(ThePage!=ThisPage){
//Different Location detected
}else{
ItBClosed();
}
}
}
function ItBClosed(){
window.open("http://www.stupidcash.com/console/pd/","new_window6","toolbar=no,scrollbars=no,menubar= no,location=no,height=478,width=740");
}
<**/scrip**t>
|