History of beforeunload Revision history for: English (US) Oct 19, 2016, 4:39:00 AM Sebastianz Added specifications table, related 'Event' tag and 'NeedsCompatTable' tag Previous Oct 12, 2016, 11:20:31 PM developeryashraj Previous Aug 29, 2016, 12:45:32 AM gwokae Previous Aug 29, 2016, 12:43:32 AM gwokae Previous Apr 29, 2016, 1:21:10 PM maslade Removed "See also" link to self. Previous Dec 17, 2015, 11:28:25 AM fscholz de-macro Previous Dec 10, 2015, 12:44:05 PM Biesi Chrome behavior changed more than a year ago Previous Sep 15, 2015, 5:02:18 PM hunan-rostomyan minor typo: another alternative would be to change it to "example below" Previous Jul 1, 2015, 12:34:39 PM sstur It doesn't make any sense to use `e || window.event` within `element.addEventListener()` since all browsers that support `addEventListener` do not require `window.event` workaround. Previous May 27, 2015, 6:38:00 AM bhofmann IE[9] will display a prompt with an empty string if `e.returnValue` is assigned an empty string, but Chrome [43] treats empty strings as void and will not prompt.