This discussion is archived
1 Reply Latest reply: Feb 21, 2013 10:44 AM by TPD-Opitz-Consulting-com RSS

How does Javascript's versionCheck function work?

818043 Newbie
Currently Being Moderated
I am familiar with the versionCheck function in JavaScript, such as in this example:
if (deployJava.versionCheck('1.7.0_13'))
jvmClassId = "1.7.0_13";
I understand that this function will check if a particular version or range of JRE versions is installed on the client.
However, I am trying to find an explanation of exactly how the versionCheck function makes this determination behind the scenes. That is, what does JavaScript look for on the computer (such as, does it look at the add-ons in Internet Explorer)? I have been scouring the Internet but can't find a detailed explanation.
I'd appreciate if anyone could explain this function.
Thanks!

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points