【发布时间】:2015-03-20 21:07:14
【问题描述】:
您好,我正在使用下面的脚本来显示我的广告
<a href="<?php the_permalink() ?>" onclick="func()" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a>
我正在使用 onclick 显示我的广告
<script>
function func()
{
window.open("xxxxx.html", '_blank');
return false;
}
这是我的功能
xxxxx.html 是
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- xxxxxxxxxxxx -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-xxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxxxxx"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
它只是打开广告窗口,但我想打开上面提到的 xxxxx.html(即)脚本中使用的链接
【问题讨论】:
-
它打开了一个空白窗口?
-
请不要否认你就是一小时前提出这个问题的同一个人:stackoverflow.com/questions/29164301/…
-
你好 Yerko Palma 它的开场广告弹出窗口,但我想自动点击该广告......
标签: javascript jquery html