title: how to keep the filled data remain after a incomplete form submit?
body: <pre><code>&lt;html&gt;
      &lt;head&gt;&lt;script type="text/javascript"&gt;
       function pa(){
          var fname = document.getElementById('fname').value;
          var lname = document.getElementById('lname').value;
          var email = document.getElementById('email').value;
          if(fname==""||lname==""||email=="")
              alert("Please, Compelete the form...");}
          &lt;/script&gt;
      &lt;/head&gt; &lt;body&gt;
          &lt;form onsubmit="pa()"&gt;
                  E-mail Address*&lt;input id="email" value="" name="email" type="text"&gt;
                  First Name*&lt;input id="fname" value="" name="fname" type="text"&gt;
                  Last Name*&lt;input id="lname" value="" name="lname" type="text"&gt;
                          &lt;input type="submit" value="Register"&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Hi,above is my code which is causing some problem .i.e,When i press submit button and if the form is incomplete then it has a alert box showing "Please complete the form...".</p>
  
  <p>After i press "ok" the filled data are refreshed.I want to keep the filled data.          I have no idea for this problem.I want my data should remain if the form is incompletely submitted.</p>
  
  <p>pls help me with this</p>