terryds Posted June 3, 2013 Share Posted June 3, 2013 I create a delete button and want it to display a confirming box when a user click the delete button...Can you tell me how to do this ? Link to comment Share on other sites More sharing options...
Spunky Posted June 3, 2013 Share Posted June 3, 2013 Event in your delete button: onclick="confirmDelete();" code for function: function confirmDelete();{ alert("DELETED!");} Link to comment Share on other sites More sharing options...
justsomeguy Posted June 3, 2013 Share Posted June 3, 2013 You can use the window.confirm (or just confirm) function to show a box with ok/cancel buttons. https://developer.mozilla.org/en-US/docs/Web/API/window.confirm Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now