从父窗口弹出的子窗口延时5秒如何自动关闭?
<html>
<head>
<script language="JavaScript">
function winClose(){
var newWin = window.open('http://www.wanwa.com/adfile/soit.asp','aaa','toolbar= 0,location= 0,directories= 0,status= 0,menubar= 0,scrollbars=None,resizable= 0,copyhistory= 0,width=350,height=220');
window.setTimeout(newWin.window.close(),5000);
}
</script>
</head>
<body onload="winClose()">
<form name="myForm" >
</form>
</body>
</html>
在线等待,测试出来就结贴