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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm using IE5, why does .appVersion show 4 ?

Status
Not open for further replies.

martindavey

Programmer
Jan 2, 2000
122
GB
I'm using IE5, why does the following return:-

"Microsoft Internet Explorer4"

var brow = ((navigator.appName) +
(parseInt(navigator.appVersion)));
 
this worked for me:

if(document.all){
t=navigator.userAgent.split(" ")
realversion=t[3].substring(0,t[3].length-1))} jared@aauser.com
 
Be careful of what parseInt is returning. Does it return all ints in the string, or just the first or last one. If it only returns the last, then maybe you are using IE 5.4 or IE 5.50.4134.6004, etc.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top