a = window.open(...);
a.moveTo(screen.width,screen.height);

解决方案 »

  1.   

    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function centerWindow() {
    if (document.all)
    var xMax = screen.width, yMax = screen.height;
    else
    if (document.layers)
    var xMax = window.outerWidth, yMax = window.outerHeight;
    else
    var xMax = 640, yMax=480;var xOffset = (xMax - 200)/2, yOffset = (yMax - 200)/2;window.open('center.htm','myExample7', 'width=200,height=200,screenX='+xOffset+',screenY='+yOffset+', top='+yOffset+',left='+xOffset+'');
    }centerWindow();
    //-->
    </SCRIPT>
      

  2.   

    a.moveTo((screen.width-a.document.body.offsetWidth)/2,(screen.height-a.document.body.offsetHeight)/2);