navigator.javaEnabled()
JavaScript 1.1+, JScript 1.0+ Nav3+, IE 3+, Opera3+ Syntax
navigator.javaEnabled()
Description
The javaEnabled() method is used to test whether the browser supports Java.
Example
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.
Listing 7.399 Example of the javaEnabled() Method
<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 ... |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.