You are here: Reference > JavaScript > client-side > browser > methods > javaEnabled (clientInformation, navigator)

javaEnabled method (clientInformation, navigator)

Browser support:
Returns a Boolean value that indicates whether Java is enabled in the current browser.

Syntax:

object.javaEnabled ( );
You can find the related objects in the Supported by objects section below.

Return value:

Boolean. One of the following values:
false Java is not enabled.
true 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? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content