button_to execute javascript function

I also want to execute a javascript function on onclick of button_to

Use "button_to_function"

Rodrigo