开发者

WScript.Shell not working in FireFox

I have following javascript code. (Actually I have开发者_如何学编程 to launch an exe on client side)

function executeCommands()
{  
      var commandtoRun ="C:\\WINDOWS\\notepad.exe";   
      var oShell = new ActiveXObject("WScript.Shell");
      oShell.run(commandtoRun);                                               
}

This code can launch notepad in the Internet Explorer when I made Security option to "Low" but this code can't launch Notepad in FireFox.

Any suggestion will be appreciated..


Firefox doesn't support ActiveXObject(), it's a proprietary feature of JScript (Microsoft's version of JavaScript).

Read more information here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜