title: JavaScript link onclick
body: <p>I am trying to create a JavaScript link <code>onclick</code>.</p>
  <p>My html:</p>
  <pre><code>&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;  xml:lang=&quot;da&quot; lang=&quot;da&quot; &gt;
  &lt;head&gt;
  
        &lt;script type=&quot;text/javascript&quot; &gt;
  
  var 22 = 'http://www.google.com';
  function www(url) { window.open(url); }
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;img style=&quot;width: 468px; height: 60px; border: 0pt none;&quot; src=&quot;http://dk.orvillemedia.com/ads/banners/386/468x60.jpg&quot; onclick=&quot;javascript:www(22);&quot; alt=&quot;468x60&quot;&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>