Never Use the Confirm Dialog
The standard browser confirm dialog should never be used: it shows irrelevant information, uses ambiguous buttons like "OK" and "Cancel," and interrupts users. Better alternatives include custom dialogs with clear labels or undo functionality that lets users reverse actions without interruption.