How can i make my browser to click on the only link that the page has in one picture?
Note, the link changes everytime the page is loaded, so js needs to click the picture, like the user would do with his cursor.
| SitePoint Sponsor |
How can i make my browser to click on the only link that the page has in one picture?
Note, the link changes everytime the page is loaded, so js needs to click the picture, like the user would do with his cursor.





Code:window.onload = function () { document.getElementById("clickThis").click(); } .... <a href="somelink.html" id="clickThis"><img...></a>
Cool. Thanks!
Bookmarks