如何在广告点击后删除包含广告代码的div?

时间:2018-03-30 07:43:41

标签: javascript jquery css html5 adsense

这是一个在线编辑器: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro

此广告代码适用于该w3网站,因为它是他们的发布代码:

    <div id="ad">
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- Homepage Leaderboard -->
    <ins class="adsbygoogle"
    style="display:inline-block;width:300px;height:50px"
    data-ad-client="ca-pub-1993393738408076"
    data-ad-slot="1234567890"></ins>
    <script>
    (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
    </div>

我们可以在一次点击后隐藏/删除adsense广告,以便人们无法多次点击,直到网页刷新为止?

1 个答案:

答案 0 :(得分:0)