The setMessage() method displays a message next to the button.
Syntax
ajax.setMessage( text );
Arguments
text
message to display
Return value
No return value.
Example
Let's say you have added a Custom button that creates a PDF file and saves it in the output folder of the project. The file opens after it is downloaded, and you want to display a message that says so.
Add the following code to the Client Before event:
ajax.setMessage("The PDF file will open automatically after it is downloaded");
See also:
•JavaScript API: AJAX helper object >removeMessage()
•How to create a PDF file and save it to the output folder
•JavaScript API: AJAX helper object