关闭窗口时怎们延迟几秒关闭
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>window.open 打开新窗口</title>
<script type="text/javascript">
function Wopen(){
window.open('http://www.imooc.com','_blank','width=1000,height=1000,top=100,left=0,menubar=no,toolbar=no,status=no,scrollbars=no')
}
window.close();
</script>
</head>
<body>
<input name="button" type="button" onClick="Wopen()" value="点击我,打开新窗口!" / >
</body>
</html>