Navigator javaEnabled() Method - Javascript Browser Object Model

Javascript examples for Browser Object Model:Navigator

Description

The javaEnabled() method tells whether the browser has Java enabled.

Parameters

None

Return Value:

A Boolean, indicating whether the browser has Java enabled.Returns true if enabled, false if not.

The following code shows how to Find out if your browser has Java enabled:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<button onclick="myFunction()">Test</button>

<p id="demo"></p>

<script>
function myFunction() {//w w  w . j  a v  a  2s .  com
    var x = "Java Enabled: " + navigator.javaEnabled();
    document.getElementById("demo").innerHTML = x;
}
</script>

</body>
</html>

Related Tutorials