This function will trigger a pop-up with an alert message and an OK button.
You can use this function to display information to the user, which they need to confirm if they want to continue.
If you need to provide options for the user to choose from, we recommend dialog().
The function doesn't work if it's executed on the server. So using this function in a do as serverblock doesn't work. It works fine when used without a do as server block on a button. Learn more about execution context
If you call this function more than once within the same script, only the last function call will be executed, so the user has only one box to confirm.