title: Submit HTML form to display entered info in new page
body: <p>I have a HTML form (called <strong>form.html</strong>)and a JavaScript function such that when form is submitted, information in that form will be displayed.<br>
  Now I want all those info will be shown in new HTML page (called <strong>confirm.html</strong>), where should I go from?</p>
  
  <p><strong>NOTE:</strong> No php or sever-side or anything that really seriously related, it's just simple OFFLINE HTML-form problem, I just have 2 html place in same folder, I will test it on my browser, that's it. Only thing that I worry is how to use information from form.html file in confirm.html file since they are obviously separated.</p>
  
  <p>Thank you very much, here is my form.html ( I dont have confirm.html yet)</p>
  
  <pre><code>    &lt;HTML&gt;
        &lt;HEAD&gt;
          &lt;TITLE&gt;Contact&lt;/TITLE&gt;
  
          &lt;script type="text/javascript"&gt;
  
            function addtext()
            {
               var fname = document.myform.first_name.value;
               var lname = document.myform.last_name.value;
               var email = document.myform.email.value;
  
               document.writeln("Thank you! You have just entered the following:");
               document.writeln("&lt;pre&gt;");
               document.writeln("First Name    : " + fname);
               document.writeln("Last Name     : " + lname);
               document.writeln("Email Address : " + email);
            }
          &lt;/script&gt;
        &lt;/HEAD&gt;
        &lt;BODY&gt;
  
        &lt;center&gt;
  &lt;b&gt;CONTACT US&lt;/b&gt; &lt;br&gt;&lt;/br&gt;   
  &lt;form name="myform"&gt;
  
    &lt;label for="first_name"&gt;First Name &lt;/label&gt;
    &lt;input  type="text" name="first_name" maxlength="50" size="30"&gt;
      &lt;br&gt;
    &lt;label for="last_name"&gt;Last Name &lt;/label&gt;
    &lt;input  type="text" name="last_name" maxlength="50" size="30"&gt;
      &lt;br&gt;
    &lt;label for="email"&gt;Email Address&lt;/label&gt;
    &lt;input  type="text" name="email" maxlength="80" size="30"&gt;
      &lt;br&gt;
    &lt;input type="submit" value="Submit" onClick="addtext()"&gt;
  
  &lt;/form&gt;
  
      &lt;/BODY&gt;
      &lt;/HTML&gt;
  </code></pre>