alertDismiss

Dismisses the currently displayed alert dialog. For confirm() and prompt() dialogs, this is equivalent to clicking the ‘Cancel’ button. For alert() dialogs, this is equivalent to clicking the ‘OK’ button.

Usage

1
client.alertDismiss().then(callback);

Parameters

Param Type Details

Example

alertDismiss.js
1
2
3
4
5
6
// close a dialog box if is opened
client.alertText( function( err, res ) {
if ( res != null ) {
this.alertDismiss()
}
});