Adding a javascript variable to html 
<p>I need to add some JavaScript into my HTML.</p>

<p>I have a JavaScript variable. How can I add it to my HTML code?</p>

<pre><code>&lt;a href="index.php?something=MYJAVASCRIPT VARIABLE"&gt;
</code></pre>

<hr>

<p><strong>UPDATE:</strong> Tried this:</p>

<pre><code>&lt;a href="#"  onclick="window.location.href = 'index.php?month=' +thisyear+'-1-1'" rel="external"&gt; Jan &lt;/a&gt;
</code></pre>

<p>But it's not working for some reason...</p>
