August 1999
Intermediate to advanced
1488 pages
72h 53m
English
navigator.javaEnabled()
The javaEnabled() method is used to test whether the browser supports Java.
Listing 7.399 shows an example of how the javaEnabled() method is used. A check is made to determine whether Java is enabled on the browser. If so, a message is output indicating that to be the case.
<html> <head> <title> Example of the javaEnabled method of the navigator object</title> </head> <body> <script language="JavaScript"> <!--Hide // check to determine if Java is enabled on the browser. // If so then output a message. if (navigator.javaEnabled()){ document.write("This browser ... |
Read now
Unlock full access