I am trying to implement a browser support feature on my webpage. For Firefox 3.6 it is working fine, but for some reason IE 8’s userAgent is returning a wrong value.
Here is the scenario, when I run a ‘local’ javascript code on IE8, navigator.userAgent returns correct information (MSIE 8.0). But when I run this script on a server, it returns MSIE 7.0 on an IE 8 browser.
Any ideas?
Microsoft provides this page:
http://msdn.microsoft.com/en-us/library/ms537509(v=vs.85).aspx
According to the Javascript sample one would think IE8 would return an 8, not a 7.