javascript confirm dialog - how to run and catch the result ?


   this will be piece of cake for you.  I want send a message to the user and continue/ stop the processing after the answer.  I put a mock sample below with the javascript command I think would be used, but without success. Someone can help me ?



   I got some progress...  I discovered I can put the javascript command directly in the action it works. However I don´t know how to get the true or false from the asnwer. Someone knows how to ?

   Below the command I am using: 

"confirm('Would you like to continue ?');"