Bug #1605

Test_create: an alert should ask for confirmation when leaving a page

Added by Giulio Moro over 8 years ago. Updated over 8 years ago.

Status:ResolvedStart date:2016-02-21
Priority:NormalDue 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

Also available in: Atom PDF