title: How can I use 'window.location.href' in a jQuery HTML insertion or wrap?
body: <p>I'm trying to insert a link into an empty &lt; a > that has the id "popup". The link will open the current page in a popup box (with parameters I'll define later). I'm trying to string together the HTML needed to make a hyperlink plus the JS variable 'window.location.href' -- how can these be strung together? i.e. how do I fix this to make it work, or rewrite it as a function with 'window.location.href' as a variable:</p>
  
  <pre><code>$("#popup").html('&lt;a href=' . window.location.href . '&gt;open popup&lt;/a&gt;');
  </code></pre>