\[code\]<script type ='javascript'> function fun(userID) { var btn = event.target; // error 'event' undefine in mozilla alert(btn.id); }</script>\[/code\]\[code\]<asp:linkButton id ="target" style =" cursorointer" onclick ="fun('1')" >click here </asp:LinkButton>\[/code\]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?