showing results for - "refresh page on back button click javascript"
Paloma
04 Jun 2018
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});