Chapter 3: Using Java on Your Pages |
index | previous | next | |||||
|
||||||
|
Displaying a message for non-Java browsersWhile most browsers these days have Java, some people use old browsers, and some surf the Web with Java turned off. In these cases, you should display a message letting people know what cool thing they're missing, as demonstrated in Listing 3.2.
To display a message for browsers without Java:1. <H1>If you had Java, you'd be seeing a cool applet now</H1> You might think that this looks just like normal HTML, and you'd be correct - it is. However, because it's within the APPLET tag, it's only shown when the user can't display the Java applet. Figure 3.2 shows how this displays on the screen.
|
To enable Java in your browser:
Some browsers, such as Netscape 4, allow Java to be disabled. If Java has been disabled in your browser, you'll want to enable it so you can see Java in action. Figure 3.3 shows Netscape's Advanced preferences, which include a check box to enable or disable Java. |