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
1 // Set Flags to determine which browser is which
2 WW_Netscape4 = true;
3 WW_Microsoft = false;
4 WW_oldbrowser = false;
5 WW_setbrowser();
6
7 function WW_setbrowser() { // Set Browser Flags
8
9 if( navigator.appName != "Netscape" ) {
10 WW_Netscape4 = false;
11 WW_Microsoft = true; }
12 if( navigator.appVersion < 4 ) {
13 WW_Netscape4 = false;
14 WW_Microsoft = false;
15 WW_oldbrowser = true; }
16
17 } // End WW_setbrowser()

in Table To:


© 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