You'll want to write an event handler and detect which button is clicked.
You can go the plugin route (if you want a menu), or just write your own handler. Using a library like jQuery is a big help.
Google turned up a sample implementation
here[
^].
Cheers.