![](/img/trans.png)
[英]how to close tabs of the IE one by one automatically using scripts which are opened since 2 mins using batch file, …
[英]Is there any way to close other tabs which opened by js in IE…?
<button onclick="openWin()">Open</button>
<button onclick="closeWin()">Close</button>
<script>
var myWindow;
function openWin() {
myWindow = window.open("http://www.google.com", "_blank", "width=500, height=500");}
function closeWin() {
myWindow.close();}
</script>
当我在window.open中输入网址时,无法关闭它
任何想法???
非常感谢!!!!!!
myWindow = window.open("http://www.google.com", "width=500, height=500");
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.