<html> <body> <a id="test_link" href="http://host/">Test</a> <script type="text/javascript"> onload = function() { var a = document.getElementById('test_link'); a.click(); } </script> </body> </html>