try {
   filler = CreateObject( "myfiller.fillform" );    
   filler.beginfill(window);        
   alert("完成";
} catch (e) {
   alert("出错了");
}

解决方案 »

  1.   

    怎么每次都是弹出对话框“出错了”用前面这段vbscript可以通过
      

  2.   

    没办法。js不支持类似On Error Resume Next的功能
      

  3.   


    我只保留这一句
    filler = CreateObject( "myfiller.fillform" );    
    运行,会报错“缺少对象……”,怎么回事?
      

  4.   

     回复人:BrentIvan(Ivan) (2001-7-6 10:56:51)  得0分 
    try {
      filler = new ActiveXObject( "myfiller.fillform" );    
      filler.beginfill(window);        
      alert("完成";
    } catch (e) {
      alert("出错了");
    }