Edit in GitHubLog an issue

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.

The following are additional simple alerts supported by UXP

  1. confirm()
  2. prompt()
ParamTypeDescription
message
string
A message you want to display in the alert dialog

Example

Copied to your clipboard
alert("This is alert message");
Note: 1. Since UXP v7.4, `alert()` can only be invoked in `plugin` via the featureFlags `enableAlerts`. Update your Manifest v5 with the following
Copied to your clipboard
"featureFlags": {
"enableAlerts": true
}
  1. Since UXP v7.4, alert() is disabled for scripts
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.