Displays a native browser confirmation dialog with OK/Cancel buttons.
Optional
The message to display (e.g., 'Are you sure?')
True if the user clicked OK, false otherwise
const isSure = confirm('Are you sure you want to delete this?'); Copy
const isSure = confirm('Are you sure you want to delete this?');
Displays a native browser confirmation dialog with OK/Cancel buttons.