var sPath = ProChild.GetProperty("File Location");
var sMacro = ProChild.GetProperty("Excel Macro To Run");
//想在不使用activeXObject的情况下修改以下代码
if(sMacro != null && sMacro ==""){
var oShell = new ActiveXObject("WScript.Shell");
oShell.Run(sPath);
更好理解的新代码
function OpenFile(){
alert ('Work');
//would like to modify ActiveXObject with any other object for cross-browser.
var x = new ActiveXObject("WScript.Shell");
x.run('winword.exe');
}
//Above code works only in IE. But don't want to use activeXObject.
//Is there any possibility to open a word file in Internet Explorer
//without using activexobject. Request for a solution.