title: How to auto click an input button
body: <p>I need the button with the ID of "clickButton" to be automatically clicked or "activated" just by someone loading the page:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;center&gt;
  &lt;form method="post"  action="http://web.com/"&gt;
  &lt;input type='hidden' value="test" id="chatbox" name='content' /&gt;
  
  &lt;!-- The Button --&gt;
  &lt;input id="submitButton" class="button" name="accept" type="submit" value="Send"/&gt;
  
  &lt;/form&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What I have tried:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  
  //In here I would use several Javascript codes, 
  //including all the ones I have been given 
  //here
  
  &lt;/script&gt;
  
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;center&gt;
  &lt;form method="post"  action="http://web.com/"&gt;
  &lt;input type='hidden' value="test" id="chatbox" name='content' /&gt;
  
  &lt;!-- The Button --&gt;
  &lt;input id="submitButton" class="button" name="accept" type="submit" value="Send"/&gt;
  
  &lt;/form&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Also if I wanted a javascript code to repeat it self, what command would I use?</p>
  
  <p>Thank you for your help in advance.</p>