Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Prevent safari loading from cache when back button is clicked

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() 
    }
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: map a square to a circle 
Javascript :: text background fabricjs 
Javascript :: automatically click button javascript on setinterval 
Javascript :: // Write a function that takes a number (a) as argument // Split a into its individual digits and return them in an array // Tipp: you might want to change the type of the number for the splitting 
Javascript :: email validation node js 
Javascript :: HOW TO ADD INDEXES TO EXISTING COLLECTIONS mongodb 
Javascript :: jquery find input and select 
Javascript :: array javascript 
Javascript :: class javascript 
Javascript :: requirejs example 
Javascript :: how to change input value in javascript using class 
Javascript :: js event div class adding 
Javascript :: javascript break and continue 
Javascript :: js comments 
Javascript :: running a function in a function javascript 
Javascript :: angular how to run code every time you route 
Javascript :: javascript perform click 
Javascript :: null + undefined 
Javascript :: convert array of javascript into string with comma 
Javascript :: recharts change scale 
Javascript :: firebase sign up with email and password 
Javascript :: how to push two values in array at once 
Javascript :: attributes in same line prettier 
Javascript :: vuex do not mutate vuex store state outside mutation handlers. nuxt 
Javascript :: arrow functions in javascript 
Javascript :: pylint vscode disable max line length 
Javascript :: string methods javascript 
Javascript :: change version webpack-dev-middleware 
Javascript :: update query in mongoose 
Javascript :: jquery find and replace text 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =