Navigator javaEnabled() Method - Javascript Browser Object Model

Javascript examples for Browser Object Model:Navigator


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



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>

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

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

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


Related Tutorials