The page under http://api.jquery.com/unload/ shows an example with alert which no longer works (in Chrome, Firefox) due to browser changes. The only allowed thing to do in the beforeunload handler are returning a string.
Originally reported as a jQuery bug: http://bugs.jquery.com/ticket/14559
The page under http://api.jquery.com/unload/ shows an example with
alertwhich no longer works (in Chrome, Firefox) due to browser changes. The only allowed thing to do in thebeforeunloadhandler are returning a string.Originally reported as a jQuery bug: http://bugs.jquery.com/ticket/14559