shard
10-24-2003, 10:45 PM
Hello everyone!
i am using this script to centeralize a new window that opens up when a link is clicked:
<script language="javascript" type="text/javascript">
var sw = parseInt(window.screen.availWidth);
var sh = parseInt(window.screen.availHeight);
var winX = parseInt(sw/2);
var winY = parseInt(sh/2);
var l = (document.all)?"left="+((winX/2)-20):"screenX="+((winX/2)-16);
var t = (document.all)?"top="+((winY/2)-20):"screenY="+((winY/2)-16);
window.moveTo(l,t);
window.focus();
</script>
this script is in the head tag of the window that is opened... the script isn't working... can anyone help me on this please??
i am using this script to centeralize a new window that opens up when a link is clicked:
<script language="javascript" type="text/javascript">
var sw = parseInt(window.screen.availWidth);
var sh = parseInt(window.screen.availHeight);
var winX = parseInt(sw/2);
var winY = parseInt(sh/2);
var l = (document.all)?"left="+((winX/2)-20):"screenX="+((winX/2)-16);
var t = (document.all)?"top="+((winY/2)-20):"screenY="+((winY/2)-16);
window.moveTo(l,t);
window.focus();
</script>
this script is in the head tag of the window that is opened... the script isn't working... can anyone help me on this please??