---
id: "requestclose"
kind: "web-feature"
canonical: "https://timetostable.com/feature/requestclose"
baseline: "low"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# dialog.requestClose() (`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.

- **Group**: HTML elements
- **Baseline**: Newly Available
- **Newly Available Date**: 2025-05-27
- **Specification**: https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-requestclose
- **Constituent BCD keys**: 1

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 134 | 2025-03-04 |
| Chrome Android | 134 | 2025-03-04 |
| Edge | 134 | 2025-03-06 |
| Safari | 18.4 | 2025-03-31 |
| Safari on iOS | 18.4 | 2025-03-31 |
| Firefox | 139 | 2025-05-27 |
| Firefox for Android | 139 | 2025-05-27 |

