Send JavaScript from button to HTML Widget?

Hi this probably will need doing by posting a message to the widget.
for example see this thread.

But it would be easier to help you if you can post an example project with the panarama. This way we can test some approches to help you.