onclick="alert(ping.test);" gives undefined
<pre><code>&lt;body&gt;
   &lt;script&gt;
    ping = new Object;
    ping.test = '1234';
   &lt;/script&gt;

&lt;a href="#" onclick="alert(ping.test);"&gt;Test&lt;/a&gt;
&lt;/body&gt;
</code></pre>

<p>why is this working in IE8 but not in Firefox or chrome ?
The popup gives "undefined" in FF v5 and Chrome v12 , it gives "1234" in IE9.</p>
