title: getting value of input box on another page
body: <p>I have two pages; <code>page1</code> and <code>page2</code>. <code>page1</code> holds a form while <code>page2</code> has some images. I want to enter a sentence into the form on <code>page1</code> and get the value of that text box on <code>page2</code>.</p>
  
  <p>the form on <code>page1</code></p>
  
  <pre><code>&lt;form name="input" action="page2.html" method="get"&gt;
      &lt;input type="text" name="textbox" id="textbox"&gt;
      &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>what would be the proper way to go about this?</p>
  
  <p>Would I use the <code>get</code> method along with the <code>action</code> method to send the value through the url and then extract it using <code>window.location.href</code> then splitting the text after the <code>?</code> or is there a simpler way of achieving this?</p>
  
  <p>Thanks</p>