javascript alert message does not pop up, why?
<p>this should work, I am just trying to contact a node and find out it's value.</p>

<pre><code>&lt;html&gt;
    &lt;head&gt;&lt;/head&gt;
    &lt;body&gt;
        &lt;script type="text/javascript"&gt;
            function nadfunc() {
                var demoList = document.getElementById('eventsList');
                alert(var);
            }
            nadfunc();
        &lt;/script&gt;

        &lt;ul id="eventsList"&gt;
            &lt;li&gt;List&lt;/li&gt;
            &lt;li&gt;List&lt;/li&gt;
            &lt;li&gt;
                &lt;a id="linkedItem" href="http://www.google.com"&gt;Linked List Item&lt;/a&gt;
            &lt;/li&gt;
            &lt;li&gt;List&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/body&gt;
&lt;/html&gt;
</code></pre>
