confirmUserMessage

Displays the given msg in a confirm dialog. This should be called for all messages to be confirmed to the application user rather than calling confirm directly. Note that future enhancements or extensions of this method may be applied to change how messages are displayed to the user, logged, or otherwise processed.

Note: The current implementation uses confirm, which is blocking. If this is changed, this behavior needs to be considered for all calls that might depend on a blocking call.

Syntax

confirmUserMessage(msg, windowContext);

Parameters

  • msg (String) The string to display in the confirm dialog.
  • windowContext (window) (Optional) The browser window instance. This can be passed in when called from a child browser window to prevent focus moving to the parent browser window.

Returns

  • (boolean) Returns true if user selects OK from the ensuing dialog; False if the user selects Cancel.