Posted in Javascript onMarch 18, 2013
<script type="text/javascript"> function closeIt() { window.opener = ''; window.open('http://www.baidu.com'); window.open('', '_self'); window.close(); } self.setInterval("newTime()", 1000) var t = 4; function newTime() { if (t > 0) { t = t - 1; document.getElementById("txtTime").value = t } else if (t <= 0) { closeIt(); } else { closeIt(); } } </script>
打开新窗口关闭当前页面不弹出关闭提示js代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@