Shows a confirm dialog to the user.
This function blocks until it receives a response from the user.
<static> showConfirmDialog( message, [title] ) → {boolean}
Name | Type | Argument | Description |
message | string | The message to display in the dialog. | |
title | string | (optional) | The title doesn't actualy get displayed. |
The user's choice from the confirm dialog.
[/reference/refbody/section/sectiondiv {""})Type:
boolean
(sectiondiv]var userConfirm = hwc.showConfirmDialog( "Are you sure you want to see an alert message?", "Confirm Alert" ); if( userConfirm ) { alert( "This is what you wanted." ); }