Is it possible to use a JavaScript confirm dialog box to determine if some codebehind will be processed? Prior to deleting a record from a database I would like to prompt the user to confirm their intent and include the particular database record information in a message box. If they select "OK" then the codebehind function is processed. If they select "NO" then they are returned back to the originating web form.