Hi TNX for any help.
I try to open a window in a onload event using a funtion but Im not sure if this script is right, this last one can be optimazed ?
thank you.
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="javascript">
function NewWindow(mypage, myname,w ,h , scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open('http://www.cnn.com', myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
</script>
</HEAD>
<BODY onLoad="NewWindow( this.href,'name','400','400','no');return false;">
</BODY>
</HTML>
I try to open a window in a onload event using a funtion but Im not sure if this script is right, this last one can be optimazed ?
thank you.
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="javascript">
function NewWindow(mypage, myname,w ,h , scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open('http://www.cnn.com', myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
</script>
</HEAD>
<BODY onLoad="NewWindow( this.href,'name','400','400','no');return false;">
</BODY>
</HTML>