0

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <script type="text/javascript">
            function readJREValue() {
		document.write("<b>Java Runtime Environment properties of your computer : </b>")
		document.write("<br>")
                var WshShell = new ActiveXObject("WScript.Shell");
                var value = WshShell.RegRead("HKLM\\Software\\JavaSoft\\Java Runtime Environment\\BrowserJavaVersion");
		document.write("Your JRE Browser Version Is: " + value);
		document.write("<br>");
            };


        </script>
    </head>
    <body onload="javascript: readJREValue()">

    </body>
</html>

当我从桌面运行此代码时,它运行良好。但是当我试图从我的本地主机运行时,不会出现..

4

0 回答 0