<body onload="moves()"><script>
function moves()
{
window.move(0,50);
}
</script>

解决方案 »

  1.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    <script language="javascript">
    function testwindow(){
    window.moveto(0,0);
    alert("hello");

    }
    </script>
    </head><body 
    <form name="form1" method="post" action="">
      <input type="button" name="Submit" value="按钮" onClick="testwindow()">
    </form>
    </body>
    </html>好像不行呀,看看那位能帮忙当点击按钮时把窗口移动到0,0位置。
      

  2.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    <script language="javascript">
    function testwindow(){
    window.moveTo(0,0);
    alert("hello");

    }
    </script>
    </head><body 
    <form name="form1" method="post" action="">
      <input type="button" name="Submit" value="按钮" onClick="testwindow()">
    </form>
    </body>
    </html>兄弟,帮你测试过了,你再看看,