Confirm Action Modal
A delete button that opens a Bootstrap confirmation modal.
Requires Bootstrap 5. Add the CDN tags below to your page (styles in
<head>, scripts before </body>). The downloaded file already includes them.<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"><script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script><button class="btn btn-danger" data-bs-toggle="modal" data-bs-target="#cfM">Delete account</button><div class="modal fade" id="cfM" tabindex="-1"><div class="modal-dialog modal-dialog-centered"><div class="modal-content"><div class="modal-body text-center p-4"><div class="fs-1">⚠️</div><h6 class="fw-bold">Are you sure?</h6><p class="text-secondary small">This action cannot be undone.</p><div class="d-flex gap-2 justify-content-center"><button class="btn btn-light btn-sm" data-bs-dismiss="modal">Cancel</button><button class="btn btn-danger btn-sm" data-bs-dismiss="modal">Delete</button></div></div></div></div></div>Free to use.This component uses Bootstrap 5 (linked above). Copy any file, or download a ready-to-open .html page with the CDN links already included.