title: Anything wrong with the following code? (html/javascript/href)
body: <pre><code>&lt;html&gt;
  &lt;title&gt;My Web Page&lt;/title&gt;
  
  &lt;form onsubmit="return redirect()"&gt;
  &lt;input id="search_form_input" type="text" name="query" /&gt;
  &lt;input type="submit" value="Search" /&gt;
  &lt;/form&gt;
  
  &lt;script type="text/javascript"&gt;
  function redirect() {
  var link = document.getElementById('link');
  link.href += document.getElementById('search_form_input')
  return false;
  }
  &lt;/script&gt;
  
  &lt;body&gt;
  &lt;p&gt;
  &lt;a id="link" href="http://www.cnn.com/"&gt;CNN&lt;/a&gt;
  &lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Basically id like the input from the form to extend itself onto the URL at CNN.com. For example, politics is entered in the form, submitted, and clicking the CNN link would bring one to CNN.com/politics. Am i going about this the right way?</p>