• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3. Language Essentials > Checking if Java Is Enabled

Checking if Java Is Enabled

Before you call on a Java applet to enhance your page, you should check to see if the user even has a Java-enabled browser. You could try to infer Java capability by the version of the browser, but it's not a reliable indicator because most browsers that can use Java also offer the option to turn it off. So you want to use code that asks the browser if Java is enabled (that means it is turned on). Script 3.6 shows you how to do it. As a side benefit, the script will also tell you if JavaScript is disabled.

Script 3.6. This script tells you whether the user has a Java-enabled browser.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint