you can have a button click handler on your client...
# suitescript
c
you can have a button click handler on your client script