internet explorer - IE : Check document mode and actual browser version without user agent -
i have issue our website support internet explorer version 9 , above. had checked user agent string obtain browser , version , redirect have found unusable solution. our network automatically changes user agent string ie 7 compatibility mode if using ie 11.
i have found using java script can check document mode, returning correct mode requested compatibility mode enabled.
rather redirecting based on document mode there way can actual browser version if compatibility mode on redirect may not required if browser ie 9 or above in compatibility mode.
the idea check if browser supports edge , change response edge , should still rendered redirect if not possible ?
i want avoid redirecting user on ie 11 compatibility mode enabled may not know how change setting.
any appreciated.
thanks
the way have gone in past, if couldn't use user agent reason, feature detection.
https://msdn.microsoft.com/en-us/library/hh273397(v=vs.85).aspx
it's important decide why need know browser version. browsers can't support whatever you're trying do, , redirect them.
Comments
Post a Comment