confirm alert onclick code example
Example: are you sure javascript
$(function() {
$('.confirm').click(function(e) {
e.preventDefault();
if (window.confirm("Are you sure?")) {
location.href = this.href;
}
});
});