hx-confirm attribute allows you to confirm an action before issuing a request. This can be useful
in cases where the action is destructive and you want to ensure that the user really wants to do it.
Here is an example:
<button hx-delete="/account" hx-confirm="Are you sure you wish to delete your account?"> Delete My Account </button>
The event triggered by
hx-confirm contains additional properties in its
hx-confirmattribute on the HTML element
hx-confirmis inherited and can be placed on a parent element
hx-confirmuses the browser’s
window.confirmby default. You can customize this behavior as shown in this example.
skipConfirmationcan be passed to the
issueRequestcallback; if true (defaults to false), the
window.confirmwill not be called and the AJAX request is issued directly