然而,我有很长的形式,被分割成izar。 为了防止用户打碎浏览器后 but子并丢失数据,我有以下内容:
window.onbeforeunload = function() { return "Hitting back will cause you to lose all form data."; };
How would I insert a flag and apply to the last step so the form can be submitted properly? Thanks,