CloseWatcher API #shorts
Chrome 120 brings the solution with CloseWatcher, a new API for directly listening and responding to close requests. It also includes upgrades to dialog and popover="" to use the new close request framework, so that they respond to the Android back button.
#NewInChrome
Chrome for Developers
Making the web more awesome....