How to handle an ActiveX event in Javascript

I was able to get this working using the following script block format, but I’m still curious if this is the best way:

<script for="MyControl" event="ReceiveMessage(msg)">
    alert(msg);
</script>

Leave a Comment