<!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> <title>Reading Registry Value</title> <script type="text/javascript"> function readJREValue() { var WshShell = new ActiveXObject("WScript.Shell"); var value = WshShell.RegRead("HKLM\\Software\\JavaSoft\\Java Runtime Environment\\BrowserJavaVersion"); document.write("Version OF Java Runtime Environment is: " + value); document.write("<br>"); }; function detectBrowser() { var N= navigator.appName; var UA= navigator.userAgent; var temp; var browserVersion= UA.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i); if(browserVersion && (temp= UA.match(/version\/([\.\d]+)/i))!= null) browserVersion[2]= temp[1]; browserVersion= browserVersion? [browserVersion[1], browserVersion[2]]: [N, navigator.appVersion,'-?']; document.write("MSIE & ContentVerse Software Property") document.write("<br>"); document.write("Browser Name & Version: " + browserVersion); document.write("<br>"); readValue(); readJREValue(); }; function readValue() { try { var WshShell = new ActiveXObject("CVOOCX"); // var value = WshShell.RegRead("HKLM\\Software\\computhink\\Contentverse OnLine\\Contentverse Flavor"); // document.write("Value of ContentVerse Flavor: " + value); document.write("<br>"); document.write("ContentVerse Flavor: " + WshShell.Flavor); document.write("<br>"); document.write("ContentVerse Installed path " + WshShell.Home); // document.write("<br>"); } catch(e) { document.write("Contentverse Dll is not registered"); } }; </script> </head> <body onload="javascript: detectBrowser()"> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)