Adding Script for a Button in a stateless form

Adding Script for a Button in a stateless form

Hi,
I have added a button to a stateless form. But I am unsure about how to add a script for when the button is clicked. Can you please let me know? PFB the corresponding configuration