How can I add a condition so that if a user is running IE6 or less not to load some javascript. I've tried the following, and the <script>
doesn't load in any browser:
<!--[if gt IE 6]>
<script blah blah blah... />
<![endif]-->
<!--[if ! IE 6]>
<script blah blah blah... />
<![endif]-->
<!--[if !IE 6]>
<script blah blah blah... />
<![endif]-->
Some assistance would be much appreciated.
Try this:
<!--[if gt IE 6]><!-->
<script blah blah blah... />
<!--<![endif]-->
The above syntax (with the extra comment delimiters) is explained in this post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With