How to not run a javascript function in IE.I'm having a number of functions in my javascript file..While i need to stop some script from running in Internet explorer. I know the below code is used to run this script file if not IE..
<!--[if !IE]><!--><script src="script.js"></script><!--<![endif]-->
How can i skip some function in js..like below I tried to skip the method b in IE..but it dont work..
function a{alert(a);}
<!--[if !IE]>
function b{alert(b);}
<![endif]-->
function c{alert(c);}
function d{alert(d);}
but the method b is always called..How can i prevent it from running in IE browsers..