|
The most common way to detect browser
type is:
navigator.appName
navigator.appVersio
For example:
//detect Netscape 4.7+
if (navigator.appName=="Netscape"&&parseFloat(navigator.appVersion)>=4.7)
alert("You are using Netscape 4.7+")
Notice how parseFloat() is
utilized to retrieve the complete browser version.
|