javascript event.target not working in mozilla
<pre><code>&lt;script type ='javascript'&gt;
    function fun(userID) {
        var btn = event.target; // error 'event' undefine in mozilla 
        alert(btn.id);
    }
&lt;/script&gt;
</code></pre>

<hr>

<pre><code>&lt;asp:linkButton id ="target" style =" cursor:pointer" onclick ="fun('1')" &gt;click here &lt;/asp:LinkButton&gt;
</code></pre>

<p>I am new in JavaScript, I have written above code and this code is working fine in Google chrome but not working in Mozilla Firefox. can anyone suggest how to find control firing event?</p>
