Buttons with multiple purposes

Hello all...


Can anyone tell me if you can give a button multiple purposes? I want the "close" button to both close the program and call a javascript function both on the same click.


Thanks!

Discussions have been disabled for this post