Is there any way to detect if current page came from back button?
I want to load data from cookie only if current page came from back button.
if (window.performance && window.performance.navigation.type == window.performance.navigation.TYPE_BACK_FORWARD) { $('.formName').get(0).reset(); }