jquery check when someone presses back button code example Example: jquery back button event $(window).on('popstate', function(event) { alert("pop"); });