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.
<script src="assets/js/popads.js" type="text/javascript"></script>
</head>
<body>
<script>
$(function () {
setTimeout(function () {
$("#clickme").click();
;
}, 5000);
});
</script>
<li><a id="clickme" href="#intro">Home</a></li>
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?
Here is the full code: https://pastebin.com/0rdxahj7