<!DOCTYPE HTML><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>close()</title> <script type="text/javascript"> var mywin=window.open("http://www.imooc.com"); var ipt=window.confirm("If close the new window?"); if(ipt==1) mywin.close() alert("已关闭窗口!"); else alert("已打开窗口!");</script></head><body></body></html>
添加回答
举报
0/150
提交
取消