【发布时间】:2015-08-08 22:35:54
【问题描述】:
我的弹出广告代码是:
<script type='text/javascript' src='//URL'></script>
如果我在window.open 中插入网址,则不会加载。
我也试过了,但没有:
var importantStuff = window.open('http://example.com/waiting.html', '_blank');
如果我将它简单地插入到页面中。为什么?
【问题讨论】:
-
删除
src部分,看看它是否有效。 -
我在没有src的window.open中插入,这样:window.open('URL');所有其他链接都有效,只有弹出广告代码无效。
标签: javascript popup alert box