title: html link, href assignment from a Javascript function
body: <p>I have a simple Javascript function which builds a Url that I want to provide a link to.</p>
  
  <p>However, I can't seem to get the anchor tag working with it.  How do I assign the href of the anchor tag the results of the Javascript function?</p>
  
  <p>Neither one of these work correctly:</p>
  
  <pre><code>&lt;a href="getUrl();"&gt;Click here&lt;/a&gt;
  &lt;a href="javascript:getUrl();"&gt;Click here&lt;/a&gt;
  </code></pre>
  
  <p>This is what I want to accomplish.</p>