PDA

View Full Version : Wrong browser versions??


DiaH
09-20-2002, 09:51 PM
I wrote some code to check the browser version so I can redirect users to other pages based on their version. I have IE6 and navigator.appversion returned that I have version 4. I tried it also with NS6.2 and it returned that I have version 5.

Is there a bug here or am I not seeing the whole picture???

Thanks
Dia

jkd
09-20-2002, 10:46 PM
IE always returns 4 for its appVersion "to maintain compatibility."

Which is really stupid, and undermines the entire purpose of having such a property... but anyway :rolleyes:

There was no "Netscape 5", but Netscape 6 and 7 both return that version number. Think of it as version inflation. But at least you can still distinguish these, as opposed to "4" for IE4, IE5, and IE6.... as Netscape 6 and 7 are still both based on Gecko, with 7 being built of Mozilla 1.0.1, and NS 6.2.1 on.... Moz 0.94?

whammy
09-22-2002, 02:25 PM
You also might want to look at the conclusion I came to after helping someone try to "reliably detect" browser versions:

http://www.codingforums.com/showthread.php?s=&threadid=6586

It's probably better to just use object detection and then redirect depending on the results...

DiaH
09-23-2002, 04:39 PM
whammy....

The link in the other message thread doesn't work anymore. I got "page cannot be displayed".

What objects or object properties do not work in netscape 4? The only one I know of is the hiding of textboxes. Is that enough of an object function to detect?