title: How do I pass the value of a variable to an specific page element with solely JavaScript?
body: <p>Let's say I have:</p>
  <pre><code>var url=&quot;http://www.google.html&quot;;
  </code></pre>
  <p>how do I put the URL variable value as the <code>href</code> value of a specific anchor tag in the page?
  I know about <code>str.link()</code> but how can I use that with a specific element? And can I use link*( to build anchors of images? That didn't seem to work for me. Thanks for the help</p>