javascript event.target not working in mozilla

<script type ='javascript'> function fun(userID) { var btn = event.target; // error 'event' undefine in mozilla alert(btn.id); } </script> <asp:linkButton id ="target" style =" cursor:pointer" onclick ="fun('1')" >click here </asp:LinkButton> 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. … Read more

How to load MVC Partial View and keep Angular JS working

How should I load mvc partial views and keep Angular JS working.
Angular JS is working fine after I render the layout, but if I load partial views in the layout, Angular JS is not working anymore in the partials.
I guess that Angular engine is not compiling the ng- directives after I inject the HTML in the DOM.