Elementary question.
I am creating two dynamic actions in a button.
First apex.confirm YES or NO question
Second, Execute Server-side Code.
If you press YES, proceed to the second one; if you press NO, exit without proceeding to the second one.
What JavaScript can be used to achieve this?
The one I have created gives me a YES/NO dialog, but the Execute Server-side Code runs before I make a selection.