Click to See Complete Forum and Search --> : Can i detect if Sun JVM is used?
Hi anyone has a JavaScript code to detect if a client is using Sun JVM on their browser, or alternatively, to detect he/she is using Microsoft VM on their browser setting?
Any help will be greatly appreciated !
Try this
<script language="JavaScript1.2">
if(window.navigator.javaEnabled()){
alert("Your browser is Java-enabled");}
else{
alert("Your browser is not Java-enabled");
}
</script>
I am not sure if it works on all XP (for instance on my Win XP Home, IE6, with Java enabled it works OK)
Khalid Ali
01-13-2004, 07:50 AM
No you can not find out if and which JVM is is being used on a system with JavaScript.
navigator.javaEnabled()
will only return true of any type of JVM is linked with browser not a certain type.
Findout from MS site,they might have an ActiveXControl(they prety much have one for every purpose) that might allow you to do this.