CloseWatcher
Limited availability
The CloseWatcher
API listens and responds to close requests on in-page components, such as modals, popovers, and sidebars.
To learn more, see
CloseWatcher,
CloseWatcher: CloseWatcher() constructor,
CloseWatcher: cancel event,
CloseWatcher: close() method,
CloseWatcher: close event,
CloseWatcher: destroy() method,
CloseWatcher: requestClose() method at MDN.
Compatibility
- Chrome 126 Released on 2024-06-11
- Chrome Android 126 Released on 2024-06-11
- Edge 126 Released on 2024-06-13
- Firefox ❌ Search for bugs Search for standards position
- Firefox for Android ❌ Search for bugs Search for standards position
- Safari ❌ Search for bugs Search for standards position
- Safari on iOS ❌ Search for bugs Search for standards position
Specifications
- HTML Standard (#close-requests-and-close-watchers), from HTML Workstream (WHATWG).