How to manage Activex events in JS without Object tag

Hi im developing activex control to manage webcam in IE, everything works but i need to refresh the image when a new frame is captures, up to now i display images on click, but i want to listen "Captured frame event" in JS to refresh my html view.

I have seen a lot of samples but all of these are using Object tag in html

<object id="Control" classid="CLSID:id"/>
    <script for="Control" event="myEvent()">
        alert("hello");
    </script>

is there a way to listen activex events using pure JS? using :

Ob = new ActivexObject('PROG.ID');

Leave a Comment