• The confirm() method displays a dialog box with a specified message.

    Parameters

    • message: string

      Specifies the text to display in the confirm box.

    Returns Promise<boolean>

  • The confirm() method displays a dialog box with a specified message.

    Parameters

    Returns Promise<boolean>