Javascript concatenate variable to url
<p>If i have a variable lets say </p>

<pre><code>var id = //something dynamically generated 
then i have &lt;a href="http://localhost/ (the variable id)"
</code></pre>

<p>How do i go about this?</p>
