[thelist] browsercheck function

Erik Mattheis gozz at gozz.com
Thu Jan 18 00:45:31 CST 2001


I haven't followed this thread, but I understand you want a function that returns true if the user has the Windows version of IE 5.5 or more recent? Try:

function myBrowserCheck(){
	var versionStartsHere = navigator.appVersion.indexOf('MSIE') + 5;
	var theVersion = navigator.appVersion.substr(versionStartsHere,3);
	if (navigator.appVersion.indexOf('Macintosh') == -1 && navigator.appName == 'Microsoft Internet Explorer' && theVersion >= 5.5) {
		return true;
		}
	return false;
	}

>Hi Stephen,
>
>actually I have been trying this function
>function browsercheck()
>{
>if ( is.nav2 || is.nav3 || is.ie3 || is.ie4 || is.5)
>return true;
>return false;
>  }
>
>but it seems to also detect ie5.5, which is not what I
>want. I want only those with ie5.5 and up to be able
>to use the application.
>
>thanks
-- 
- Erik Mattheis
http://gozz.com/
(612) 827 3963




More information about the thelist mailing list