SyntaxFix
Write A Post
Hire A Developer
Questions
In javascript, navigation type 2 means browser's back or forward button clicked and the browser is actually taking content from cache.
if(performance.navigation.type == 2) { //Do your code here }