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.
精彩评论