I have link as follows:
<a onclick=delete() href=".$this->action('delete', $data['status_id']).">Delete</a>
the javascript code as follows:
function delete() {
if (confirm('<?php echo $delConfirmJS ?>')){
return true;
}
}
the confirmation message shown, if i cancel message the href link target executes. How to stay it if user cancel confirmation means?