JSFiddle - React, Tailwind, and code Playground by ChangJoo Park July 29, 2019 JavaScript window.onbeforeunload = function () { window.alert() }