How to use Navigator javaEnabled in Javascript
In this article I have described about javaEnabled() method in Javascript
Navigator javaEnabled() method in Javascript
- To check the browser capability like java enable browser we use javaenabled() method of navigator object.
- It return boolean value i.e. true or false to check javaenable capability browser.
Browser support
Following are the main browsers which support the Constructor Property of array object
- Internet Explorer.
- Firefox.
- Opera.
- Google Chrome.
- Safari.
Syntax
The javaEnabled() method of navigator object has following syntax
navigator.javaEnabled()
Lets take an example
<!DOCTYPE html>
<html>
<body style = "background-color:yellow">
<script type="text/javascript">
document.write("Browser Java enabled :- " + navigator.javaEnabled());
</script>
</body>
</html>
|
OUTPUT
Further Readings
You may also want to read these related articles :here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here