EDIT:
I have a standard button added to the salesforce standard page, what I want to do when the user clicks on the buttons the following:
1) alert with the message saying " are you sure you want to run "
a. if the user ok then execute the trigger
b. if the user cancel then do nothing.
Is there any way to set up an alert message when a user clicks the button on the Contact object, so when the user clicks on the button, user should get an alert with [ok] and [cancel] if the user click on [cancel] nothing happens but if the user clicks on [ok] then I have to fire trigger event.
Custom Button or Link
created with Behavior - Javascriptwindow.confirm
method? How is this not just a pure JS question?