Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE version sniffing

Status
Not open for further replies.

ronsig

Programmer
May 24, 2001
54
IL
Hi

I'm trying to sniff out the exact browser version used, but all IE versions return "4". How can I distinguish between 5, 5.5, 6 etc.?

Thanks,
Ron
 
You probably check navigator.appVersion property.
Use navigator.userAgent instead.

Here's what it shows:

for IE5 on win2k -
Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)

for IE6 on winXP -
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top