Since this is the VBScript forum, maybe the answer should be given in VBScript, so here's my version:
Dim bAnswer
bAnswer = MsgBox ("Are you sure you want to do this?", vbYesNo + vbQuestion + vbDefaultButton1, "Leave me now?") 'yes/no buttons with question mark icon and...