Skip to main content

alert()

Last updated 24/03/2026

is a function on the
Five
object that displays a dialog message that the user must acknowledge. An optional

callback
can be provided to execute code once the dialog is closed.

Available

Client

Function Signature
alert(message: string [, callback: ()=>void]) : void;

ParameterTypeDescription
message
stringMessage to be displayed in the dialog as a string
callback
functionAn optional callback function

Return Value​

This function does not have a return value.

Examples​

alert()