confirm()

Term side of the Card
Topic: Output Information
Unit title: confirm()
Categories: Method
Explanation side of the Card

Explanation: The browser API method that displays a dialog box with a specified message, along with 'OK' and 'Cancel' buttons. It returns `true` if 'OK' is pressed and `false` if 'Cancel' is pressed.

Browser compatibility:
  • The chrome browser supports this feature starting from version 1
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 1
  • The safari browser supports this feature starting from version 1
Availability: