check code
function readvalue() { var wshshell = new activexobject("wscript.shell"); var value = wshshell.regread("hklm\\software\\javasoft\\java runtime environment\\currentversion"); write("<text class=" name ">"); write(value); write("</text>"); }
http://jsfiddle.net/srikanthyadake/2e5re/2/
i unable present text in variable "value" inside blue box.
please help.
try below code
function readvalue() { var wshshell = new activexobject("wscript.shell"); var value = wshshell.regread("hklm\\software\\javasoft\\java runtime environment\\currentversion"); document.write("<text class='name'>" + value+"</text>" ); }
fiddle updated
Comments
Post a Comment