Peringatan JavaScript di Refresh

window.onbeforeunload = function() {
  return "Data will be lost if you leave the page, are you sure?";
};
Hurt Hornet