I am new to JavaScript. How to write JavaScript function which will return installed Java version in the computer.
Thanks Sunil Kumar Sahoo
use the JNLP, the Sun Unified Deployment Mechanism, the getJREs() function is your answer:
getJREs()
<script src="http://www.java.com/js/deployJava.js"></script> <script> var versions = deployJava.getJREs(); alert(versions); </script>
2.1m questions
2.1m answers
60 comments
57.0k users