Knu
Knu

Reputation: 15136

How to detect IE11 on Windows 10 in javascript?

AFAIK the only difference between IE11 on Windows 8.1 and Windows 10 is the removal of P3P.
Are there any other changes/unfixed bugs that could be used to detect it?
Something like the IE11 on Windows 7 guide—but for Windows 10—would be quite useful in that endeavour.

Upvotes: 2

Views: 725

Answers (1)

Knu
Knu

Reputation: 15136

Here's how I did it:

if (
     // is IE 11 even in web workers
     !self.ActiveXObject && 'ActiveXObject' in self &&

     // exclude Windows 7/8/8.1 and Windows Phone 8.1
     /Windows NT 10.0/.test(self.navigator.userAgent)
   )
   console.log('IE11 on Windows 10');

I have also read that HTTP/2 support is Windows 10 specific.

Upvotes: 2

Related Questions