我在使用上述代码时,无法实现对原窗口的自动关闭,系统总会出现一个提示框,"问:是否要关闭当前窗口",如何让系统不出现该提示框且自动关闭
<html>
<script language="JavaScript">
function time(){
msg=window.open("","w1","toolbar=no,menubar=no,width=50,height=50");
close();
msg.document.write("<%=now%>");
}
</script>
<body onload="time()">
</body>
</html>
我在使用上述代码时,无法实现对原窗口的自动关闭,系统总会出现一个提示框,"问:是否要关闭当前窗口",如何让系统不出现该提示框且自动关闭原窗口?