We start with the JavaScript function call in GuiXT scripts, a feature that is useful in its own right and in its application to ActiveX controls.

This is how to proceed: