DH_Dialog demo

Interactive test page for the shared DH_Dialog library. Each button below triggers a dialog and displays the resolved value.

pre-built examples

alert (info)

Simple informational alert. Resolves undefined when dismissed.

alert (long message)

Alert with a multi-line message body demonstrating white-space: pre-line.

confirm (default)

Standard confirmation dialog. Resolves true or false.

confirm (danger)

Destructive action confirmation with red button styling.

confirm (custom labels)

Custom confirm/cancel button labels instead of defaults.

prompt (basic)

Text input prompt. Resolves the entered string or null on cancel.

prompt (with default value)

Prompt pre-filled with a default value that is auto-selected.

type-to-confirm

Requires exact text input before the confirm button enables. Resolves true or false.

stacked dialogs

Opens two dialogs in sequence to test z-index stacking and focus restoration.

playground

native vs DH_Dialog comparison

alert

Compare native window.alert() with DH_Dialog.alert().

confirm

Compare native window.confirm() with DH_Dialog.confirm().

prompt

Compare native window.prompt() with DH_Dialog.prompt().

type-to-confirm

No native equivalent. DH_Dialog exclusive feature.