title: Transfer data from one HTML file to another
body: <p>I'm new to HTML and JavaScript, what I'm trying to do is from an HTML file I want to extract the things that set there and display it to another HTML file through JavaScript.</p>
  
  <p>Here's what I've done so far to test it:<br>
  <b>testing.html</b></p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
     &lt;script language="javascript" type="text/javascript" src="asd.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;form name="form1" action="next.html" method="get"&gt;
  name:&lt;input type ="text" id="name" name="n"&gt;
  &lt;input type="submit" value="next" &gt;
  &lt;button type="button" id="print" onClick="testJS()"&gt; Print &lt;/button&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><b>next.html</b></p>
  
  <pre><code>&lt;head&gt;
     &lt;script language="javascript" type="text/javascript" src="asd.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;form name="form1" action="next.html" method="get"&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td id="here"&gt;test&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><b>asd.js</b></p>
  
  <pre><code>function testJS()
  {
  
  var b = document.getElementById('name').value
  
  document.getElementById('here').innerHTML = b;
  
  }
  </code></pre>
  
  <p><code>test.html</code> -> <code>ads.js</code>(will extract value from the test.html and set to next.html) -> <code>next.html</code></p>