LukasKalbertodt / luten

(Not maintained anymore!)
Apache License 2.0
1 stars 1 forks source link

Guard against closing tabs with non-submitted data in forms #45

Open LukasKalbertodt opened 7 years ago

LukasKalbertodt commented 7 years ago

Students could close tabs unintentionally or they could just assume that changes in form elements are immediately "saved". To avoid confusion, we should guard pages containing forms. We can, somehow, with JS (I think), prevent the tab from being closed and instead let a message pop up. We should certainly do that, but only in the case that form values are actually changed.