Edit in GitHubLog an issue

window.confirm()

Returns: boolean - true If OK button is pressed and false when Cancel button is pressed.

The following are additional simple alerts supported by UXP

  1. alert()
  2. prompt()
    Since: v7.0.0 Displays a Confirm 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.
ParamTypeDescription
message
string
A string you want to display in the confirmation dialog.

Example

Copied to your clipboard
confirm("This is confirmation message");
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.