15. 调用客户端的程序
<script>
var wsh=new ActiveXObject("wscript.shell")
wsh.run("notepad.exe")
</script>

解决方案 »

  1.   

    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head><body>
    <script>
    function callEXE(){
    var wsh=new ActiveXObject("wscript.shell")
    wsh.run("notepad.exe d:\\temp\\ip.txt")
    }
    </script>
    <form name="form1" method="post" action="">
      <input type="button" name="callbutton" value="调用EXE" onClick="callEXE()">
    </form>
    </body>
    </html>
      

  2.   

    YorkYe(York):
    是文字形式的链接,比如一段文字,点击后调用callEXE()?
      

  3.   

    <body>
    <script>
    function callEXE(){
    var wsh=new ActiveXObject("wscript.shell")
    wsh.run("notepad.exe d:\\temp\\ip.txt")
    }
    </script>
    <a href="#" onClick="callEXE()">click me</a>
    </body>