Web platform features explorer

CloseWatcher

Limited availability
Tags: api

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

Usage (according to Chrome Platform Status)

~0.002% of page loads. More data at chromestatus.