Monday, May 20, 2024
17
rated 0 times [  18] [ 1]  / answers: 1 / hits: 20794  / 13 Years ago, thu, march 31, 2011, 12:00:00

It's possible to load a script only in IE with conditional comments



<!--[if lte IE 7]>
<script type=text/javascript src=somescript.js></script>
<![endif]-->


but what if I don't want to load it in IE lte 7 (but still need it in all other browsers)?



Any simple solutions?



P.S. I have a problem with SyntaxHighlighter - too many code slows IE7 down and since I'm short of time, I decided just to turn it off in IE7 for now.


More From » internet-explorer

 Answers
52

This post says you can use the ! (NOT) operator like [if !IE]


[#92980] Wednesday, March 30, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jadyngraysons

Total Points: 455
Total Questions: 109
Total Answers: 98

Location: Trinidad and Tobago
Member since Fri, May 8, 2020
4 Years ago
jadyngraysons questions
Thu, Apr 23, 20, 00:00, 4 Years ago
Sat, Jan 18, 20, 00:00, 4 Years ago
Tue, Dec 31, 19, 00:00, 4 Years ago
;