title: Submit a form without refreshing page in html, js
body: <p>i have a small form chat like this and i want when click submit that form will not make the page refresh.</p>
  
  <pre><code>&lt;form name="form1" method="post" id="formchat" action="forum_add_1313940.xhtml"&gt;
  &lt;input name="text" id="text2" max-lenght="1000"&gt;&lt;/input&gt;
  &lt;input type="submit" name="submit" class="submit" value="Gửi" id="chats" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and the js</p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
  $('#formchat').submit(function () 
  {
    sendformchat(); return false; 
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>But when i click "Gửi", the page gonna refresh.
  How to make it when click "Gửi", the page not gonna refresh ?</p>