怎么通过写javascript代码不用点击就能激活页面上的超链接

如何通过写javascript代码不用点击就能激活页面上的超链接?
同上。谢谢。

------解决方案--------------------
<html>
<a href= "http://hi.baidu.com/aaxh "> aaxh </a>
<script>
document.getElementsByTagName( "a ")[0].click();
</script>
</html>