I have seen some code from you which invokes javascript from PB code.
Could not find that anymore.
I simply need to trigger a js function, setting a value to a input having an onchange does not work until the input loses focus.
The only times that I have used javascript are some of the WebBrowser examples, and it has been copied from somewhere because I don't know how to program with that language.
I have also on example on hosting VBScript:
http://www.jose.it-berater.org/smfforum/index.php?topic=4383.msg15308#msg15308
You can use jascript by changing pIActiveScript = NEWCOM CLSID $CLSID_VBScript to pIActiveScript = NEWCOM CLSID $CLSID_JScript.