I am trying to figure out how to make an anchor link clicked when the website is visited. I would be grateful if someone can help me, here’s a demo code, you can match the id for my ease thank you.
<body>
<a id='deepakkamat' href='http://mywebpage.com'> This is my webpage </a>
</body>
So i want to know any JavaScript code to make the link clicked when the page loads. Thank you in advance.
The jquery answer:
This will actually register a click event as the cause, but it seems awfully unnecessary. The meta method is the preferred method.