<!DOCTYPE HTML><HTMLLang= "ZH-CN"><Head> <Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"> <title>Test ActiveXObject</title> <Script> functionRun (command) {window.oldonerror=Window.onerror; Window._command=command; Window.onerror= function(err) {if(Err.indexof ('utomation') != -1) {alert ('Command' +Window._command+ 'has been banned by the user! '); return true; } Else return false; }; varWSH= NewActiveXObject ('Wscript.Shell'); if(WSH) WSH. Run (command); Window.onerror=Window.oldonerror; } </Script></Head><Body> <H1Align= "Center">Invoking a local application in a Web page</H1>Please enter the program you want to run:<BR/><inputname=exetype=textsize=20value= "regedit"> <Buttonclass=buttononclick= "Run (exe.value)">Are you sure</Button> <Buttonclass=buttononclick=exe.value= "";>Re-enter</Button><BR/> <Buttonclass=buttononclick= "Run (' Notepad ')">Notepad</Button><BR/> <Buttonclass=buttononclick= "Run (' MSPaint ')">Drawing board</Button><BR/> <Buttonclass=buttononclick= "Run (' calc ')">Calculator</Button><BR/> <Buttonclass=buttononclick= "Run (' cmd ')">Cmd</Button><BR/> <Buttonclass=buttononclick= "Run (' Regedit ')">Regedit</Button><BR/> <Buttonclass=buttononclick= "Run (' Msconfig ')">Msconfig</Button><BR/> <Buttonclass=buttononclick= "Run (' File:///D:/Program%20Files/Winamp/WINAMP.EXE ')">Winamp</Button><BR/> <Buttonclass=buttononclick= "Run (' IEXPLORE. EXE ') ">Ie</Button><BR/> <Buttonclass=buttononclick= "Run ('.. ')">..</Button><BR/> <Buttonclass=buttononclick= "Run ('%windir% ')">%windir%</Button><BR/> <Buttonclass=buttononclick= "Run ('%temp% ')">%temp%</Button><BR/> <Buttonclass=buttononclick= "Run (' File:///D:/Program%20Files/Tencent/qq.EXE ')">Winamp</Button></Body></HTML>