Library API
    Preparing search index...

    Function confirm

    • Displays a native browser confirmation dialog with OK/Cancel buttons.

      Parameters

      • Optionalmsg: string

        The message to display (e.g., 'Are you sure?')

      Returns boolean

      True if the user clicked OK, false otherwise

      const isSure = confirm('Are you sure you want to delete this?');