在 1.html 的 head 区内加入:
<meta http-equiv="refresh" content="0;URL=2.html">
或者
<body onload="window.location.href='2.html'">

解决方案 »

  1.   

    <script language="javascript">
    window.location.href = 2.html
    </script>response是服务器的对象
      

  2.   

    jjkkk():
      使用你的方法怎么报错呢?
      说少';'代码是:<script language="javascript">
    <!--
    window.location.href = 2.html;
    //-->
    </script>
      

  3.   

    2.html 是字符串, 得加引号: 代码不规范, 误人子弟
    window.location.href = "2.html";
      

  4.   

    版主!!!!
    我这个贴一结就报错退出!!!这是为什么????
    n次了!!!!!
    我是IE6