Delete Alert Box Confirmation

Delete Alert Box Confirmation

I have a delete record button in one of my stateless forms so that can delete a record.  The button works fine but I really need a confirmation  button so that users don't accidentally delete a record.

My Code currently looks like this:

if(input.Account_ID  !=  null)
{
delete from Account[ID == input.Account_ID];
openUrl(("#View:Accounts"),"same window");
}

the above script runs when a form button is clicked.  I need it first to ask a confirmation with the options confirm or cancel.  Again, I just need a way for users to confirm they want to delete.  

Thank you.