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]-->
Just use ! see here for more info
or
Unfortunately, there's no such mechanism as to exclude a script (i.e. unless the script is targeted at IE only, in which case go see ramblex/karim79's answer).
But ... you could modify your script to check for a global (yeah, I know sigh) variable that - when set - makes the script stop. Something along the line:
Now go on and include the global variable with a conditional tag, like so:
Et voila.
For all IE versions: