Also I have put in the popup
Code:
<body onblur=window.self.close()>
How can I use the following code but first and everytime see if the window exists or is an object, if not there do nothing, else run the script?
Code:
var fClose=0
function doClose(){
if(fClose)close();
}
function _blur(){
fClose=1;
setTimeout("doClose()",100);
}
</script>
<body onblur="_blur()">
Thanks DeZiner

we all stop learning.