Bug #1605
Test_create: an alert should ask for confirmation when leaving a page
Status: | Resolved | Start date: | 2016-02-21 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - |
Description
... in order to avoid losing unsaved work.
Something like this should do the trick:
window.onbeforeunload = function (e) {var message = 'If you leave the page now, any unsaved changes will be lost', e = e || window.event; if (e) { e.returnValue = message;}return message;};
History
#1 Updated by Nicholas Jillings over 8 years ago
- Status changed from New to Resolved