Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
var unsavedChanges = false; window.onbeforeunload = function() { if (unsavedChanges) return 'You have unsaved changes!'; }
No comments:
Post a Comment