Use the custom confirmation screen and insert a special class then use JavaScript to perform the special action.

http://bbdevnetwork.com