index.htm
<input type=button oncilck=window.open("main.htm","","width=100,height=100")>main.htm
<body onload=location()>
<script>
alert("我要变喽");
window.location=http://www.killerj.tk
</script>
<input type=button oncilck=window.open("main.htm","","width=100,height=100")>main.htm
<body onload=location()>
<script>
alert("我要变喽");
window.location=http://www.killerj.tk
</script>
这次回复也有问题。
1.点击鼠标的事件你是不是写成了oncilck?
2.<script></script>应该指明所用的脚本语言,因为你并不知道浏览器是否把Javascript设置为默认脚本语言
3.没有location()函数,有的话,你找出来
4.漏写.href,正确的用法window.location.href="test.htm";
5.字符串没有带有引号不知道你的2个三角怎么骗来的……
------------------------------------
体验速度,体验CSDN新版论坛助手:http://community.csdn.net/Expert/TopicView.asp?id=3108679