Simple javascript onclick not working
<p>Here's the fiddle:</p>

<p><a href="http://jsfiddle.net/5UXkA/" rel="nofollow">http://jsfiddle.net/5UXkA/</a></p>

<p>HTML:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;
&lt;input type="button" value="button" onclick="test()" /&gt;
&lt;/body&gt;
&lt;/html&gt;​
</code></pre>

<p>JavaScript:</p>

<pre><code>function test() {
    alert('hi');
}​
</code></pre>

<p>As expected, it is not alerting the data!</p>
