window.alert()
Since: v7.0.0 Displays an Alert message dialog putting the application in a modal state while not blocking the JavaScript thread and still allowing processing of events in the main event loop.
UXP behaviour is different from the standard behaviour of blocking the JavaScript thread of execution until the dialog has been dismissed.
The following are additional simple alerts supported by UXP
Param | Type | Description |
---|---|---|
message | string | A message you want to display in the alert dialog |
Example
Copied to your clipboardalert("This is alert message");