vbscript
isobject(控件名)当然也可以用on error resume next
如果出错了,自然就不可用啦

解决方案 »

  1.   

    typeof()函数可以判断if (typeof(object)!="undefined")
    {
       alert(object.tagName)
    }
      

  2.   

    <OBJECT classid=clsid:00460182-9E5E-11d5-B7C8-B8269041DD57 height="100%" 
          id=oframe width="100%"><PARAM NAME="_ExtentX" VALUE="17939"><PARAM NAME="_ExtentY" VALUE="13600"><PARAM NAME="BorderColor" VALUE="-2147483632"><PARAM NAME="BackColor" VALUE="-2147483643"><PARAM NAME="ForeColor" VALUE="-2147483640"><PARAM NAME="TitlebarColor" VALUE="52479"><PARAM NAME="TitlebarTextColor" VALUE="0"><PARAM NAME="BorderStyle" VALUE="1"><PARAM NAME="Titlebar" VALUE="1"><PARAM NAME="Toolbars" VALUE="1"></OBJECT>
    这个object需要安装控件才能调用,如何判断他的控件是否已经安装?
      

  3.   

    我也有相关问题。
    http://expert.csdn.net/Expert/topic/2570/2570040.xml?temp=.3207056
    我这个owc对象,根本就捕捉不到event。
    <object onkeydown="myTest()" name="ChartSpace1" id="ChartSpace1" classid="CLSID:0002E556-0000-0000-C000-000000000046" style="width:100%;height:350">
    </object>
    根本就不执行我的 myTest()