checking for browser type and version

wxdqz

New Member
I'm trying to check the version number of the browser to detect whether it is netscape version 6 or above:

var g_ns6 = (navigator.userAgent.indexOf("Netscape6")>0);

var g_ie5 = ((navigator.userAgent.indexOf("MSIE 5")>0)||(navigator.userAgent.indexOf("MSIE 6")>0));

Please could someone give me a pointer int he right direction.

Cheers
 
Back
Top