---
url: /dash-core-components/confirmdialog
name: ConfirmDialog
description:
    "dcc.ConfirmDialog is a component featuring the browser's native 'confirm' modal with optional message & two buttons."
languages:
    - python
    - julia
    - r
    - matlab
    - fsharp
---
# ![](/assets/images/language_icons/julia_50px.svg) dcc.ConfirmDialog

`dcc.ConfirmDialog` is used to display the browser's native
"confirm" modal, with an optional message and two buttons ("OK" and "Cancel").
This ConfirmDialog can be used in conjunction with buttons when the user is
performing an action that should require an extra step of verification.

See [`dcc.ConfirmDialogProvider`](/dash-core-components/confirmdialogprovider)
for an easier way to display an alert when clicking on an item.

{{example confirm}}

------------------------

{{reference dcc.ConfirmDialog}}
