home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Comunicatii / slimbrow / sbsetup.exe / DetectClsID.js < prev    next >
Text File  |  2004-04-18  |  618b  |  26 lines

  1. //AllFrames
  2. DetectClsID();
  3. function DetectClsID()
  4. {
  5.     mdoc=document;
  6.     var objs=document.all;
  7.     var l=objs.length;
  8.     var count=0;
  9.     for (i=0;i<l;i++)
  10.     {
  11.         var obj=objs[i];
  12.         try
  13.         {
  14.           if (obj.tagName=="OBJECT")
  15.           {
  16.               var s="URL="+window.location.href+"\r\n"+obj.classid+"\r\nCodeBase="+obj.codeBase+"\r\n\r\n";
  17.               s=s+"If you see annoying activex dialogs in the current page, you can report the above information to us so that we can block this ActiveX control in the next version."
  18.               external.showTextBox("ActiveX Control Detected!",s);
  19.               count++;
  20.           }
  21.         } 
  22.         catch(e)
  23.         {
  24.         }
  25.     }
  26. }