Posted By

sekihin on 09/14/10


Tagged


Versions (?)

The event of ActiveX Control


 / Published in: JavaScript
 

  1. <Script language="javascript">
  2. function onCallBack(){
  3. //Do something
  4. }
  5.  
  6. window.onload = function(){
  7. var yourActiveXObject = document.getElementById('UserControl1');
  8. if(typeof(yourActiveXObject) === 'undefined' || yourActiveXObject === null){
  9. return;
  10. }
  11.  
  12. // attach events
  13. var status = yourActiveXObject.attachEvent('EventName', onCallBack);
  14. }

Report this snippet  

You need to login to post a comment.