showConfirmDialog( message, [title] ) method

Shows a confirm dialog to the user.

This function blocks until it receives a response from the user.

Syntax

<static> showConfirmDialog( message, [title] ) → {boolean}

Parameters

Name Type Argument Description
message string   The message to display in the dialog.
title string (optional) The title doesn't actualy get displayed.

Returns

The user's choice from the confirm dialog.

Type:

boolean

Example

var userConfirm = hwc.showConfirmDialog( "Are you sure you want to see an alert message?", "Confirm Alert" );
if( userConfirm )
{
   alert( "This is what you wanted." );
}

Source

hwc-comms.js, line 1553.