// detect the browser type-version
var isMac = (navigator.appVersion.indexOf("Mac") != -1);
var MIE = ((navigator.appName == "Microsoft Internet Explorer" &&
navigator.appVersion.substring(0,1) >= "4" &&
navigator.appVersion.indexOf("5.")==-1) && isMac);
var MIE5 = ((navigator.appName == "Microsoft Internet Explorer" &&
navigator.appVersion.indexOf("5.")!=-1) && isMac);
var MNS = (isMac && (navigator.appName == "Netscape" &&
navigator.appVersion.substring(0,1) >= "4"));
var NS6 = ((navigator.appName == "Netscape" &&
navigator.appVersion.substring(0,1) == "5") && !isMac);
var NS4 = (((navigator.appName == "Netscape" &&
navigator.appVersion.substring(0,1) >= "4") && !isMac) && !NS6);
var IE4 = (((navigator.appName == "Microsoft Internet Explorer" &&
navigator.appVersion.substring(0,1) >= "4") && !isMac));
var IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);
if (MIE){do something here}
if (MIE5){do something here}
if (MNS){do something here}
if (NS4){do something here}
if (NS6){do something here}
if (IE4 || IE5){do something here}
-----Original Message-----
From: James Taavon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 7:46 AM
To: CF-Talk
Subject: OT: Force IE to launch
Question,
I have an app that runs in IE 5.0 and above. How can I prompt the user
if they are using Netscape to switch to IE?
James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists