Andrew Poulos wrote:
Is there a way to test whether the browser is Firefox version less than
2.0 or 2.0+?
I take a positive view that that you are using this for your own
interest and not for inferring feature support based on browser
sniffing:
alert( navigator.userAgent );
My Firefox 2 looks like:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1)
Gecko/20061010 Firefox/2.0
*It is unreliable*. However, since few sites use sniffing any more
(though unfortunately some major sites still do) there is less
incentive to fake the UA string.
--
Rob