如何通过写javascript代码不用点击就能激活页面上的超链接?
同上。谢谢。
[解决办法]
<html>
<a href= "http://hi.baidu.com/aaxh "> aaxh </a>
<script>
document.getElementsByTagName( "a ")[0].click();
</script>
</html>
发布时间: 2012-02-21 16:26:23 作者: rapoo
如何通过写javascript代码不用点击就能激活页面上的超链接?
同上。谢谢。
[解决办法]
<html>
<a href= "http://hi.baidu.com/aaxh "> aaxh </a>
<script>
document.getElementsByTagName( "a ")[0].click();
</script>
</html>