Hi all,

I have a application that hosts an Explorer instance, and exposes an object model interface through the browser's document.external pointer. It works great, got a heirarchy of object methods.

Anyone have a clue how to 'register' events with the browser though? That way the user could write something like...
Code:
<SCRIPT for="window.external.something" event="onSomethingImportant">
// Quick, do something important!
</SCRIPT>
I figure I could just save an IHTMLScriptElement* interface pointer for the relevant script nodes...but I'm at a loss for how to execute the script in the node when needed. Furthermore...there has to be another way?