0

I have a function that calls many functions which are not supported by IE8, so I am looking for how to disable executing this script for IE8. I saw many solutions like using HTML comments:

<!--[if !IE]> --> Code <!-- <![endif]--><!--[if IE]>

But I want disabling IE8 interpretation inside a function, because there are other scripts that run correctly on IE8.

There is a function in jQuery "jQuery.browser()" but it has been deprecated.

Could you please tell me how to resolve this issue?

Thank you in advance.

Chinovski
  • 497
  • 3
  • 7
  • 18

1 Answers1

1

Maybe this will help:

if (navigator.userAgent.match(/MSIE 8/) == null) {
  // do something !IE8
}

from:

how do I run a script only for IE 8

Browser detection in JavaScript?

Community
  • 1
  • 1
Destrif
  • 2,104
  • 1
  • 14
  • 22