CloseWatcher
Limited availability
The CloseWatcher API listens and responds to close requests on in-page components, such as modals, popovers, and sidebars.
Browser support
- Chrome 126 Released on 2024-06-11
- Chrome Android 126 Released on 2024-06-11
- Edge 126 Released on 2024-06-13
- Firefox 149 Released on 2026-03-24
- Firefox for Android 149 Released on 2026-03-24
- Safari Not supported Position: neutral
- Safari on iOS Not supported Position: neutral
Baseline availability blocked since March 2026 by Safari (4 months)
Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.
MDN documentation
Specifications
- HTML (#close-requests-and-close-watchers), from HTML Workstream (WHATWG).
Usage (according to Chrome Platform Status)
~0.051% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist