Javascript: click on hyperlink as soon as page loads

Just add an ID to the hyperlink (the 'a' element) and trigger a click.
Something like:

HTML:
<a id="mylink" href="http://web.com">LINK</a>

and the javascript

function someName ()
{
   document.getElementById("mylink").click();
}

and on the body opening you just add:
<body onLoad="someName()">
 
Back
Top