When you setup a button, one option should be for it to execute JS code.