Defining user events for WebBrowser

You can define PowerBuilder user events for WebBrowser and then trigger the event in JavaScript. User events can be defined with one string-type parameter and string-type return value (code example) or no parameters.

EventName (string parameter)

User events must be registered by RegisterEvent function before it can be triggered in JavaScript.

It is not allowed to call any other WebBrowser functions in the user event.