Detect browser or tab closing in JavaScript | i2tutorials

Detect browser or tab closing in JavaScript | i2tutorials

More to explore