【发布时间】:2015-08-14 10:35:19
【问题描述】:
有一个锚标记,试图从 javascript 中单击它但没有响应,在加载页面时它应该转到 next.php 而无需手动单击锚标记。我该如何存档?
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="jquery-2.0.3.js"></script>
<script type="text/javascript">
alert("hai");
$(document).ready(function() { $('#about').click(); });
</script>
</head>
<body>
<div>
<a href="next.php" id="about">click here</a>
</div>
</body>
</html>
【问题讨论】:
标签: javascript jquery html