Write this in onclick
event of the button:
var result = confirm("Want to delete?");
if (result) {
//Logic to delete the item
}
More Related Contents:
- Preventing my form to refresh using ajax
- Javascript does not work
- Force browser to download image files on click
- How can I count text lines inside an DOM element? Can I?
- Event detect when css property changed using Jquery
- How to autosize a textarea using Prototype?
- OnChange event handler for radio button (INPUT type=”radio”) doesn’t work as one value
- Do you need text/javascript specified in your tags?
- Find html label associated with a given input
- Dynamically creating HTML elements using Javascript?
- Programmatically selecting partial text in an input field
- How do I check connection type (WiFi/LAN/WWAN) using HTML5/JavaScript?
- How to get the background color of an HTML element?
- How to silently hide “Image not found” icon when src source image is not found
- forcing web-site to show in landscape mode only
- angularjs to output plain text instead of html
- Getting mouse location in canvas [duplicate]
- How to export html table to excel using javascript
- HTML5 video not streaming and taking 90 seconds to load
- Why aren’t some technically serializable input properties serializable?
- Selecting multiple from an html select element without using ctrl key
- Call two functions from same onclick [duplicate]
- Anchor tag download attribute not working :Bug in Chrome 35.0.1916.114
- How to add and remove classes in Javascript without jQuery
- What are some methods to debug Javascript inside of a UIWebView?
- Preloading images in HTML
- allowing only alphabets in text box using java script
- How to show fullscreen popup window in javascript?
- copying the value of a form’s file input field to another form’s input field
- trigger file upload dialog using javascript/jquery