title: jQuery .click() function for auto-open popup ad
body: <p>I want that jQuery clicks on any item on the site to open the popup ad from an advertiser. Normally users would have to click on any point on the site, but I want that the Popup opens after loading.</p>
  
  <pre><code>    &lt;script src="assets/js/popads.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script&gt;
        $(function () {
            setTimeout(function () {
                $("#clickme").click();
                ;
            }, 5000);
        });
      &lt;/script&gt;
      &lt;li&gt;&lt;a id="clickme" href="#intro"&gt;Home&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>I selected the Home Button for that, but it doesnt't work. The popup opens automatically if a users clicks anything on the page, thats the setting from the ad network not mine. So I don't want to wait until the user clicks, I want that jQuery clicks before the user when the page finished loading, so the popup opens. Any ideas?</p>
  
  <p>Here is the full code: <a href="https://pastebin.com/0rdxahj7" rel="nofollow noreferrer">https://pastebin.com/0rdxahj7</a></p>