Forum Moderators: open
Netscape is almost giving me gray hair (could be my poor Javascript skills too :) ).
What I'm trying to do is to see if my popup exists with javascript. It works really well under IE, but not NS. I swear, it was working before but I don't know what happened =)
// Open up an empty window, if it exists it doesn't do anything to it
MyBlur = window.open('','TheBlur','toolbar=0,menubar=0,scrollbars=0,status=0,width=1,height=1,resizable=1,screenX=0,screenY=0,left=0,top=0');
MyBlur.blur();
if (MyBlur.location.pathname != "/popup/blur.html") {
MyBlur = open('http://domain.com/popup/blur.html','TheBlur','toolbar=0,menubar=0,scrollbars=0,status=0,width=1,height=1,resizable=1,screenX=0,screenY=0,left=0,top=0');
MyBlur.blur();
self.focus();
}
It bails out on the MyBlur.location.pathname. I also tried....
if (typeof MyBlur.location.pathname == "undefined")
but that didn't work either. Plus a bunch of other combinations, no luck.
Anyone that has any great ideas?
Take care,
Patric
if (MyBlur.location.pathname != "/popup/blur.html") {
MyBlur = open('http://domain.com/popup/ blur.html','TheBlur','toolbar=0,menubar=0,scrollbars=0,status=0,width=1,height=1,resizable=1,screenX=0,screenY=0,left=0,top=0');
MyBlur.blur();
self.focus();
}
else
{ alert(MyBlur.location.pathname); }
and see if your pathname is correct for netscape.