Search code examples
javascriptinternet-explorerblocking

Block script in IE


I have a fancy script that is nice, but not essential and surprise surprise, doesn't play nice with IE. How do I 'comment it out' for IE?

I know I can use the following to include statements for IE, but how do I exclude them?

<!--[if IE 6]>
Special instructions for IE 6 here
<![endif]-->

Solution

  • Just use ! see here for more info

    <!--[if !IE]>
    

    or

    <!--[if !(IE 6)]>