function DetectActiveX()
{
try
{
var comActiveX = new ActiveXObject(控件名称);
}
catch(e)
{
return false;
}
return true;
}
这样的做法会在页面上弹出一个黄色警告框,
有没有其他的什么办法不在页面上弹出黄色警告框啊???
我只想判断,没有打算下载或者安装啊,
{
try
{
var comActiveX = new ActiveXObject(控件名称);
}
catch(e)
{
return false;
}
return true;
}
这样的做法会在页面上弹出一个黄色警告框,
有没有其他的什么办法不在页面上弹出黄色警告框啊???
我只想判断,没有打算下载或者安装啊,
function DetectActiveX()
{
try
{
var comActiveX = new ActiveXObject(控件名称);
}
catch(e)
{
throw new Error("控件名称 is not installed on your system!");
return false;
}
return true;
}