Confirmation dialog (sometimes called a warning
alert box or chicken box)
[Java Look and Feel Design Guidelines, Alert Boxes](_blank)
/ref> is a dialog box
In computing, a dialog box (also simply dialog) is a graphical control element in the form of a small window that communicates information to the user and prompts them for a response.
Dialog boxes are classified as " modal" or "modeless", dep ...
that asks user to approve requested operation. Usually this dialog appears before a potentially dangerous operation is performed (program termination, file deletion, etc.)
Typically confirmation dialog boxes have two buttons
A button is a fastener that joins two pieces of fabric together by slipping through a loop or by sliding through a buttonhole.
In modern clothing and fashion design, buttons are commonly made of plastic but also may be made of metal, wood, o ...
(e.g. ''Yes'' / ''No'', ''Confirm'' / ''Cancel'') or three buttons (e. g. ''Save'' / ''Discard'' / ''Cancel'').
Some human interface guidelines recommend avoiding unnecessary confirmation dialogs. BlackBerry
BlackBerry is a discontinued brand of handheld devices and related mobile services, originally developed and maintained by the Canadian company Research In Motion (RIM, later known as BlackBerry Limited) until 2016. The first BlackBerry device ...
and Sun Java
Java is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea (a part of Pacific Ocean) to the north. With a population of 156.9 million people (including Madura) in mid 2024, proje ...
UI guidelines recommended a confirmation button be put before a cancellation button; but a default button should not be associated with a major destructive action.[BlackBerry GUI guidelines]
References
See also
* Error-tolerant design
* Alert dialog box
{{GUI-stub
Graphical user interface elements