JavaScript Confirm before submit

  • Thread starter Thread starter Jeremy
  • Start date Start date
J

Jeremy

I have a datagrid that users interact with to
add/edit/delete, but before the .aspx submits for the
delete action I want to pop up a JavaScript confirm box.

If the user clicks OK on that box I want the page to be
submited and to delete the item(s) from the grid, if the
user clicks CANCEL I don't want the page to do a postback.

So far I have everything working except the JavaScript
confirm box (in other words the delete just happens
without the user confirming). Can anybody please help me
with getting the confirm to work (I don't even know where
to start)?

Thanks,
Jeremy
 
Back
Top