Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

go back doesnt load javascript safari

window.onpageshow = function(event) {
    if (event.persisted) {
        window.location.reload() 
    }
};
//If you are using jQuery then do:
$(window).bind("pageshow", function(event) {
    if (event.originalEvent.persisted) {
        window.location.reload() 
    }
});
 
PREVIOUS NEXT
Tagged: #doesnt #load #javascript #safari
ADD COMMENT
Topic
Name
5+6 =