showMessage()
The showMessage() function (client-side) displays a custom alert message on the product interface. Users can close the message using the Close button.
Syntax
Use this syntax for the showMessage() function:
showMessage('Custom message');
Return Value
The showMessage() function returns undefined.
Parameters
The showMessage() function accepts the custom alert message as a required string parameter.
Examples
The following examples show how to use the showMessage() function.
Displaying a Message on the Product Interface
This example notifies users that the selected desk is no longer available.
showMessage('The desk A1000 is no longer available.');