Guys, welcome. Please tell me how the message is implemented, if for example the user has changed the 1 input form, and leaves the page (or updates it) without pressing the save button. How to stop / notify that data is not saved?

  • window.onbeforeunload = function() { return ('Все данные, которые вы ввели будут потеряны');}; and after saving window.onbeforeunload = ""; - splash58
  • @ splash58 just won't work everywhere - Alexey Shimansky
  • @ splash58 This will work even if the fields have not been changed. Or something I do not understand? - youngoldman
  • @ AlekseyShimansky to be honest, I did not study the question: (I once did to myself, right now I looked :) - just on the page - splash58
  • @ DanilSysoev so turn on when something has changed. and turn off after saving - splash58

0