File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem to determine NetScape browser version

 
arnold yan
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm trying to determins users' NetScape browser version and based on that, I need to display different messages. Is it possible for me to tell if a user has NetScape 7.0 or 7.1? I tested with following javascript,
alert("broweserversion: " + navigator.appVersion);
On both 7.0 and 7.1, I got the same alert message like, "browserversion: 5.0 (Windows, en-US)". So I can not tell the difference. And it is not even showing me the correct version.
Is there another way I can accomplish this?
Thanks.
Arnold
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to do browser sniffing then here is the site for you to look at...
http://webreference.com/tools/browser/javascript.html
There are tons of links for you to look at here that show you how to detect the difference between mjor and minor versions.
Eric
 
arnold yan
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool! I found what I need from that site. Many thanks!
Arnold
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had to use that site to get Opera versions correctly since it can hide under other browsers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic