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.


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:
    <script type="text/javascript">
        function IsJavaEnabled () {
            alert (navigator.javaEnabled ());
    <button onclick="IsJavaEnabled ();">Is Java enabled in this browser?</button>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content