You are here: Reference > JavaScript > client-side > browser > methods > javaEnabled (clientInformation, navigator)
javaEnabled method (clientInformation, navigator)
Returns a Boolean value that indicates whether Java is enabled in the current browser.
Syntax:
You can find the related objects in the Supported by objects section below.
Return value:
Boolean. One of the following values:
Java is not enabled. | |
Java is enabled. |
Example HTML code 1:
This example illustrates the use of the javaEnabled method:
|
||||
<head> <script type="text/javascript"> function IsJavaEnabled () { alert (navigator.javaEnabled ()); } </script> </head> <body> <button onclick="IsJavaEnabled ();">Is Java enabled in this browser?</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
External links:
User Contributed Comments