Hi I found lots of help for a javascript function which will check JRE version . It worked fine in Internet Explorer. But I am using Mac Operating system and I have Safari. The same examples did not work fine for Safari.
The following link tells about javascript function which will check JRE version
http://stackoverflow.com/questions/1873342/how-to-write-javascript-function-to-check-jre-version.
Also I have written small javascript program to check JRE version worked fine in Internet Explorer But It didnot give any result in safari.
<script type="text/javascript">
function checkJavaSupport () {
var result = {
javaEnabled: false,
version: ''
};
if (typeof navigator != 'undefined' && typeof navigator.javaEnabled != 'undefined')
result.javaEnabled = navigator.javaEnabled();
else
result.javaEnabled = 'unknown';
if (navigator.javaEnabled()&& typeof java != 'undefined'){
result.version = java.lang.System.getProperty("java.version");
return result;
}
else
return java.lang.System.getProperty("java.version");
}
</script>
So is there any way to check JRE version using Javascript.
Thanks Sunil Kumar Sahoo