我正在寻找将在特定时间间隔后自动打开新选项卡(窗口)的 javascript 代码。
执行第一个 url 后,setTimeout()/setIntervals() 将被忽略??请帮忙!
<html>
<head>
<script type="text/javascript">
function open_win() {
setInterval(window.open("http://www.google.com"), 1000);
setInterval(window.open("http://www.yahoo.com"), 1000);
setInterval(window.open("http://www.bing.com"), 1000);
}
</script>
</head>
<body>
<form>
<input type=button value="Open Windows" onclick="open_win()">
</form>
</body>
谢谢