JavaScript variable on HTML
<p>I'm trying to use the value of a Kavascript variable; however, for some reason <code>document.write</code> is not working.</p>

<p>Can you tell me what am I doing wrong and if there's another way to do this?  Here is my Javascript code:</p>

<pre><code>&lt;script type="text/javascript"&gt;
    var url=${paramValue};
    url = url.replace(/\s/g,"%20");
    document.write("&lt;a href='" + url + "'&gt;" +
        "&lt;img src='/folder1/folder2/folder3/folder4/folder5/image.png'" +
        " width='70' height='20'&gt;&lt;/a&gt;");
&lt;/script&gt;
</code></pre>

<p>The variable <code>url=${paramValue};</code> is working, as I can check it with firebug.
The image is not appearing</p>
