Hi,
I have the following script that displays a popup window centered in the
middle of the screen. I am getting a script error in both IE and Netscape
but I don't know what it means. Thanks in advance.
The error is
------------
Error: win has no properties
Line 13 below ( win.window.focu s(); )
The code is
------------
var win= null;
function newWindow(mypag e,myname,w,h,sc roll) {
var winl = (screen.availWi dth-w)/2;
var wint = (screen.availHe ight-h)/2;
var settings ='height='+h+', ';
settings +='width='+w+', ';
settings +='top='+wint+' ,';
settings +='left='+winl+ ',';
settings +='scrollbars=' +scroll+',';
settings +='resizable=ye s';
win=window.open (mypage,myname, settings);
if(parseInt(nav igator.appVersi on) >= 4)
win.window.focu s();
if (!win.opener)
win.opener = self;
}
I have the following script that displays a popup window centered in the
middle of the screen. I am getting a script error in both IE and Netscape
but I don't know what it means. Thanks in advance.
The error is
------------
Error: win has no properties
Line 13 below ( win.window.focu s(); )
The code is
------------
var win= null;
function newWindow(mypag e,myname,w,h,sc roll) {
var winl = (screen.availWi dth-w)/2;
var wint = (screen.availHe ight-h)/2;
var settings ='height='+h+', ';
settings +='width='+w+', ';
settings +='top='+wint+' ,';
settings +='left='+winl+ ',';
settings +='scrollbars=' +scroll+',';
settings +='resizable=ye s';
win=window.open (mypage,myname, settings);
if(parseInt(nav igator.appVersi on) >= 4)
win.window.focu s();
if (!win.opener)
win.opener = self;
}
Comment