<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>close()</title> <script type="text/javascript">function a(){ var m=window.open('http://www.baidu.com','_blank','width=200,height=200'); var b=confirm("做好准备进入神秘旅途了吗"); if(b==true){ var c =prompt("请输入正确指令",""); if(c==123){ alert("welcome"); } else{ alert("口令不对,禁止进入"); m.close(); } } else{ alert("请做好准备再来吧"); m.close(); }} </script></head><body> <input type="button" value="开始神秘之旅" onclick="a()" /></body></html>
添加回答
举报
0/150
提交
取消