+++ title = "Dialogs" template = "demo.html" +++ Dialogs can be triggered with the [`hx-prompt`](@/attributes/hx-prompt.md) and [`hx-confirm`](@/attributes/hx-confirm.md)attributes. 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
``` The value provided by the user to the prompt dialog is sent to the server in a `HX-Prompt` header. In this case, the server simply echos the user input back. ```html User entered ${response} ``` {{ demoenv() }}