Page 1 contains a dynamic form, page 2 is a review of submitted data. I have the following constraints :
- no
beforeunloadwarning when submitting page 1 ; beforeunloadwarning when refreshing page 1 ;no reloading of page 1 when issuinghistory.back()from page 2.
I tried to play with window.onbeforeunload and $(window).unload() (in page 1) but I can't seem to get the expected result.
Is this even possible, or are these constraints definitely contradictory (I mean, for a reasonable number of JS lines…) ?
Update :
I removed constraint 3 because according to some reading it deserves its own question.