The following code reads the default path of mediapalyer. After the operation, confirm that the program has no security issues and you can test it with confidence.
<! Doctype html public "-// W3C // dtd html 4.0 Transitional // EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <meta name = "Generator "CONTENT =" EditPlus "> <meta name =" Author "CONTENT =" "> <meta name =" Keywords "CONTENT =" "> <meta name =" Description "CONTENT = ""> </HEAD> <script language = "javascript"> function readRegedit () {var obj = new ActiveXObject ("WScript. shell "); var s =" HKLM \ SOFTWARE \ Microsoft \ MediaPlayer \ Installation Directory "; var sNic = obj. regRead (s); alert (sNic);} script <BODY> <input type = "button" value = "click me" onclick = "readRegedit (); "/> </BODY> </HTML>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]