Displays a custom message box. If the application is running in the browser, a browser alert box is used. If the application is packaged as a native mobile application, a native dialog box is used.
Parameters:
- message - the message to display in the box
- callback - optional function to call when the dialog is dimissed
- title - optional title for the native dialog box
- button name - optionally overrides the name of the button to dismiss the dialog
Examples:
pui.alert("Process completed successfully"); pui.alert("Process completed successfully", function() { }, "My Application Name", "Done");