I want to add a confirm dialog to a delete button to ask the user whether it is ok or not deleting the selected item.
If not, nothing should happend, else a url should be
You can return the confirm() (which returns true/false), like this:
return
true
false
Delete
You can test it here