如何在页面加载时点击某个按钮?
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script>
$("#submit").click(function() {
$("#submit").click();
});
</script>
</head>
<body>
<form action="Untitled-9.php" method="post">
<input type="text" name="name" value="dsa"/>
<input type="submit" name="submit" value="Register" />
</form>
<?php
$name = $_POST['name'];
echo $name;
?>
</body>
这是我拥有的代码,我希望在加载页面时自动按下“注册”按钮