Thursday, July 3, 2014

Warn user if Back is pressed in javascript

 window.onbeforeunload = function () {
            return "You work will be lost.";
        };

No comments:

Post a Comment