title: Javascript and a href with variables
body: <p>I have a little doubt about javascript, a new language that I'm studying...</p>
  
  <p>I have a variables that contains a link, like </p>
  
  <pre><code>var Link = "http://www.example.com/search?q=javascriptvariable&amp;k=&amp;e=1";
  </code></pre>
  
  <p>I'd like to press a button and go to the link, that I've saved in a the variable Link. I've tryed with:</p>
  
  <pre><code>&lt;a href=Link&gt;&lt;input type="submit" value="Go" /&gt;&lt;/a&gt;
  </code></pre>
  
  <p>What's wrong?</p>
  
  <p>PS</p>
  
  <p>The link I want to edit is not the link of my page (I can't use this.document.location.href). My button should redirect the user to another website and do a custom search.</p>
  
  <p><strong>PPS</strong>
  If you want an example. I have a textbox on my website. If the user write something in my textbox and clicks the Go button the text in my textbox will replace JAVASCRIPTVARIABLE in 
  <a href="http://search.aol.com/aol/search?enabled_terms=&amp;s_it=comsearch51&amp;q=JAVASCRIPTVARIABLE" rel="nofollow">http://search.aol.com/aol/search?enabled_terms=&amp;s_it=comsearch51&amp;q=JAVASCRIPTVARIABLE</a> and will open the AOL research page.</p>