nxa
nxa

Reputation: 3063

Detect Windows 8 Mobile?

I was wondering if this can detect the windows 8 mobile!

    <!--[if (gt IE 9)&(IEMobile)]>  
    Win 8 Phone  
    <[endif]-->  

Having said that IE10 dropped conditional comments, did they implemented same in mobile as well?

Upvotes: 1

Views: 1003

Answers (2)

user2836265
user2836265

Reputation: 91

IE 10 does not support conditional comments in any devices. EI10 also have removed their proprietary filters from it.

For any mobile device detection - http://detectmobilebrowsers.com/

Reinventing wheel does not have any valid points.

Upvotes: 2

nxa
nxa

Reputation: 3063

Conditional comments didnt worked on IE10 Mobile as well. Had to go with navigator.userAgent string sniffing.

I found a JSfiddle that helps tp achieve the same: http://jsfiddle.net/googabeast/VKAZ8/

Upvotes: 0

Related Questions