问题描述
以下代码适用于我计算机上的本地主机并打开 3 个新网页。我似乎记得点击 url 输入中的红色图标并点击允许。但是当我在我的网站上运行它时,只打开一个窗口并且没有允许多个页面的红色图标。我正在使用 Chrome。
<!DOCTYPE HTML>
<html>
<head>
<title>Open Pages</title>
</head>
<body>
<button onclick=openAll()>Print All</button>
<script>
function openAll(){
window.open('print_ballot_single.PHP?serial=13079');
window.open('print_ballot_single.PHP?serial=13080');
window.open('print_ballot_single.PHP?serial=13081');
}
</script>
</body>
</html>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)