<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>close()</title>
<script type="text/javascript">
function check(){
for(var i=0; i<5;i++){
if(i<5){
var mywin=window.open("http://www.imooc.com");
}else{
mywin.close();
}
}
}
</script>
</head>
<body>
<input name="button" type="button" onClick="check()" value="点一下试试"/>
</body>
</html>
不断滴自我催眠
相关分类