Click a button to run script

I am using RW6 and Stacks. Sometime with/without Foundation theme. I want the user to click a button and run a simple script (I have script that prints the frame)- how do I do this?

Ira,

Could this help?

Will’s stuff is invariably excellent.

Thank you so much @MarkSealey for the solution.

I’m developing my video streaming website similar to YouTube using advanced feature YouTube Clone Script, but unable to apply this event action in footer, again thanks for the help.