Setting new window location with JavaScript

Created 13 August 2004 00:00
<SCRIPT LANGUAGE="JAVASCRIPT">
    var top = 100;
    var left = 400;
    var w = 280;
    var h = 210;
    // adjust left and top position of new window
    left = (screen.availWidth / 2) - (w / 2);
    top = (screen.availHeight / 2) - (h / 2);
    window.open ('YourPage.htm', 'winValidation', 'width=' + w + ',height=' + h + ',
     resizable=1,left=' + left + ',top=' + top + ',scrollbars=0');
</SCRIPT>