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 Standard (#close-requests-and-close-watchers), from HTML Workstream (WHATWG).