Input values into link GetElementByID
<p>Can anyone show me how to do the following:</p>

<pre><code>onclick="window.location.href='http://www.google.com/document.getElementById("id")'
</code></pre>

<p>Obviously this is not how you do it but I'm looking for the correct way to place content written in a text input into a link.</p>

<p>So if the element ID had the word Google inside it the link would end up:</p>

<pre><code>http://www.google.com/Google
</code></pre>

<p>Any pointers / guidance would be perfect thanks!</p>
