J
Jdhp_Admin
Guest
i started to get a wierd error. it gave me an invalid argument error in a place where there was no code. it used to work then POOF it started erroring.
the JS Script:
The Call Procedure:
the JS Script:
Code:
<script language="JavaScript">
function newWindow(mypage,myname,w,h,features) {
if(screen.width){
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
}else{winl = 0;wint =0;}
if (winl < 0) winl = 0;
if (wint < 0) wint = 0;
var settings = 'height=' + h + ',';
settings += 'width=' + w + ',';
settings += 'top=' + wint + ',';
settings += 'left=' + winl + ',';
settings += features;
win = window.open(mypage,myname,settings);
win.window.focus();
}
</script>
Code:
<a href="javascript:newWindow('My URL Here','The Window Name',600,550,'scrollbars=1,resizable=1')">

