CloseWatcher
Limited availability
The CloseWatcher
API listens and responds to close requests on in-page components, such as modals, popovers, and sidebars.
Learning resources on MDN
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 ❌
- Firefox for Android ❌
- Safari ❌ Vendor position : neutral
- Safari on iOS ❌ Vendor position : neutral
Specifications
- HTML (#close-requests-and-close-watchers), from HTML Workstream (WHATWG).
View web-platform-tests results for this feature - View the feature source file - Edit the feature - Report an issue about this feature