Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

which version of java a client is using?

Status
Not open for further replies.

joeg99

Programmer
Mar 1, 2002
6
IE
Hi

I need to find which version of java a client is running (not just if it is enabled), and if possible wether they are using the microsoft or the sun virtual machine, is this possible from java script?
 
<script language=&quot;javascript&quot; type=&quot;text/javascript&quot;>
var check_java_vers = 0;
</script>
<script language=&quot;javascript1.2&quot; type=&quot;text/javascript&quot;>
check_java_vers = 1;
</script>
<script language=&quot;javascript1.3&quot; type=&quot;text/javascript&quot;>
check_java_vers = 2;
</script>
<script language=&quot;javascript&quot; type=&quot;text/javascript&quot;>
if (check_java_vers == 0) {
alert('javascript 1.0');
} else {
if (check_java_vers == 1) {
alert('javascript 1.1');
} else {
if (check_java_vers == 2) {
alert('javascript 1.2');
}
}
}
</script>

hope this help u


wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Nice job neversleep, but they wanted to know what version of JAVA CLIENT the user is running, and whether it's MS or Sun version of the VM (that last part was the tip-off that they didn't want javaSCRIPT). Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top