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

Chapter 2. Start Me Up! > Checking if Java is Enabled

Checking if Java is Enabled

Before you call on a java applet to enhance your page, your 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 hava also offer the option to turn it off. So you want to use code which asks the browser if java is turned on, or enabled. Script 2.13 shows you how to do it. As a side benefit, the script will also tell you if javaScript is disabled.

Script 2.13. 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