Basic HTML version of Foils prepared 11 March 99

Foil 58 DHTML -- Decide on Browser

From Overview of JavaScript II -- From Cookies to Dynamical HTML CPS616 Technologies of the Information Age -- Spring Semester 99. by Geoffrey C. Fox (Tom Scavo)

JavaScript DHTML Utilities
// Set Flags to determine which browser is which
WW_Netscape4 = true;
WW_Microsoft = false;
WW_oldbrowser = false;
WW_setbrowser();
function WW_setbrowser() { // Set Browser Flags
if( navigator.appName != "Netscape" ) {
WW_Netscape4 = false;
WW_Microsoft = true; }
if( navigator.appVersion < 4 ) {
WW_Netscape4 = false;
WW_Microsoft = false;
WW_oldbrowser = true; }
} // End WW_setbrowser()



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Mar 11 1999