We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    I'm trying to create a button with a simple JS alert containing a privacy policy using this code:

    <button onclick="alert('Here's the privacy policy');">Privacy Policy</button>


    When the button is clicked, my Adsense ads reload, but there's no alert, even though the button code is outside (and nowhere near) the Adsense div.

    Any clues appreciated.


    ---------------------------------------------------------------------------------------------------------------
    PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
    MODX info for everyone: http://bobsguides.com/modx.html


      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 4310
      • 2,310 Posts
      Try :
      <button onclick="alert('Here\'s the privacy policy');">Privacy Policy</button>