Execute function before refresh

    window.onbeforeunload = function(event)
    {
        return confirm("Confirm refresh");
    };

Leave a Comment