Web platform features explorer

dialog.requestClose()

The requestClose() method of a <dialog> HTML element closes the dialog, firing a cancel event first, which listeners can use to prevent the dialog from closing. This differs from the close() method, which only fires the non-cancelable close event.

Status

Baseline Newly Available (since 2025-05-27)

This feature is expected to reach Baseline Widely Available status on: 2027-11-27

Specifications

Browser support

  • Chrome 134 Released on 2025-03-04
  • Chrome Android 134 Released on 2025-03-04
  • Edge 134 Released on 2025-03-06
  • Firefox 139 Released on 2025-05-27
  • Firefox for Android 139 Released on 2025-05-27
  • Safari 18.4 Released on 2025-03-31
  • Safari on iOS 18.4 Released on 2025-03-31

Usage (according to Chrome Platform Status)

~0.000% of page loads. More data at chromestatus.