[thelist] browsercheck function

Mia Kurt miakurt at yahoo.com
Thu Jan 18 14:19:31 CST 2001


thanks so much.
--- Erik Mattheis <gozz at gozz.com> wrote:
> 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
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




More information about the thelist mailing list