I need to detect Netscape 6.01. I have an old script that does the trick:
The problem that I noticed is that it triggers on my Firefox browser, thinking that I run Netscape 6.01. Any idea on how I can get the script to only trigger on a true Netscape 6.01?
I’m afraid that if I do a fix that sorts out my Firefox browser, there is another browser or version out there that triggers it. I don’t want to keep patching the script for many years to come each time I find a new browser that messes it up...
Code:
var app;
var ver;
app = navigator.appName;
ver = navigator.appVersion;
if ( app.indexOf("Netscape") != -1 && ver.indexOf("5.0") != -1 )
The problem that I noticed is that it triggers on my Firefox browser, thinking that I run Netscape 6.01. Any idea on how I can get the script to only trigger on a true Netscape 6.01?
I’m afraid that if I do a fix that sorts out my Firefox browser, there is another browser or version out there that triggers it. I don’t want to keep patching the script for many years to come each time I find a new browser that messes it up...