1window.addEventListener( "pageshow", function ( event ) {
2 var historyTraversal = event.persisted || ( typeof window.performance != "undefined" && window.performance.navigation.type === 2 );
3 if ( historyTraversal ) {
4 // Handle page restore.
5 //alert('refresh');
6 window.location.reload();
7 }
8});