title: Click button on loading the page
body: <p>How to make a certain buttom be clicked on the load of the page?</p>
  
  <pre><code>&lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
  
  &lt;script&gt;
  $("#submit").click(function() {
    $("#submit").click();
  });
  &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;form action="Untitled-9.php" method="post"&gt;
  &lt;input type="text" name="name" value="dsa"/&gt;
  &lt;input type="submit" name="submit" value="Register" /&gt;
  &lt;/form&gt;
  
  
  &lt;?php
  
  $name = $_POST['name'];
  
  echo $name;
  
  ?&gt;
  
  
  &lt;/body&gt;
  </code></pre>
  
  <p>This is the code I have and I want when the page is loaded to press the button "Register" automatically</p>