Skip to content Skip to sidebar Skip to footer

Fire Jquery/ Javascript After Back Button In Safari 9

When I navigate back using the browser back button in Chrome/ Firefox my website works just as expected (the same as it would if loaded without navigating backward). In Safari aft

Solution 1:

Try this

$(window).bind("pageshow", function(event) {
    if (event.originalEvent.persisted) {
        window.location.reload() 
    }
});

Post a Comment for "Fire Jquery/ Javascript After Back Button In Safari 9"