JSFiddle - React, Tailwind, and code Playground by davidmurdoch June 07, 2011 JavaScript window.onbeforeunload = function(){ return "Dont do it."; };