Javascript examples for Browser Object Model:Navigator
The javaEnabled() method tells whether the browser has Java enabled.
None
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:
<!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>