A trick for calling external javascript from ActiveX,

when HTMLViewer is the Explorer handler:

HTMLViewer.Navigate("javascript:layoutHandler();", NULL, NULL, NULL, NULL);

Handy for calling a function when doing quick tests.