[Javascript] Browser sniffing!
Information - Abyss
Info at Abyss.ws
Wed Jan 10 05:51:29 CST 2007
Good Evening,
I am wanting to write a Javacript file that will find a browsers name and browser version
so that anything less then IE 7 it displays an error message I tried the follwoing
window.onload = fncOnLoad;
function fncOnLoad()
{
alert("APP NAME:" + navigator.appName);
alert("appVersion: " + navigator.appVersion);
alert("Product: " + navigator.product);
alert(" vendor:" + navigator.vendor );
alert(" app code name:" + navigator.appCodeName );
}
but that did not return what i wanted....
eg it would return Mozilla (rather then FireFox) and it would return version 4 for IE6..
would someone please be able to shed some light on this?
Thank you for your help
Abyss.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070110/ea8f1801/attachment.htm>
More information about the Javascript
mailing list