+++ title = "Dialogs" template = "demo.html" +++ htmx provides several approaches for working with modals and dialogs, from simple browser-native dialogs to custom implementations and framework integrations. **Jump to:** 1. [Browser Native Dialogs](#browser-native-dialogs) 2. [Custom Modal Dialogs](#custom-modal-dialogs) 3. [Bootstrap Modals](#bootstrap-modals) 4. [UIKit Modals](#uikit-modals) ## Browser Native Dialogs The simplest approach uses the [`hx-confirm`](@/attributes/hx-confirm.md) attribute to trigger native browser dialogs. These are triggered by the user interaction that would trigger the AJAX request, but the request is only sent if the dialog is accepted. ```html
This modal dialog was loaded dynamically by htmx.