<script>
location.href='index2.htm'
</script>

解决方案 »

  1.   

    <head>
    <script>
     function change(){
        location.href='index2.htm'
     } 
    </script>
    </head>
    <body onload="change()">
    </body>
      

  2.   

    <body onload="location.href='www.sina.com.cn'">
      

  3.   

    我也凑凑热闹
    <script>
    window.open('http://www.sina.com.cn/','_top');
    </script>
      

  4.   

    <html>
    <head>
    <title>openurl</title>
    <script language="javascript">
    function openurl(){
    var url;
    url = "a.htm"
    newwin=window.open("","","fullscreen=0,directories=0,location=0,status=1,toolbar=0,menubar=0,scrollbars=0");
    if (document.all){
    newwin.moveTo(0,0);
    newwin.resizeTo(screen.width,screen.height);
    }
    newwin.location=url;
    focus();
    closes.Click();
    }
    <script>
    </head>
    <body onload="openurl()">
    <OBJECT id=closes type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
    <param name="Command" value="Close">
    </object>
    </body>
    </html>
    给你发一个可以控制打开窗口大小并自动关闭原来窗口的代码