在 1.html 的 head 区内加入:
<meta http-equiv="refresh" content="0;URL=2.html">
或者
<body onload="window.location.href='2.html'">
<meta http-equiv="refresh" content="0;URL=2.html">
或者
<body onload="window.location.href='2.html'">
window.location.href = 2.html
</script>response是服务器的对象
使用你的方法怎么报错呢?
说少';'代码是:<script language="javascript">
<!--
window.location.href = 2.html;
//-->
</script>
window.location.href = "2.html";
我这个贴一结就报错退出!!!这是为什么????
n次了!!!!!
我是IE6