Monday, February 3, 2020

Page refresh only one time using jquery:

<script type='text/javascript'>

(function()
{
  if( window.localStorage )
  {
    if( !localStorage.getItem('firstLoad') )
    {
      localStorage['firstLoad'] = true;
      window.location.reload();
    } 
    else
      localStorage.removeItem('firstLoad');
  }
})();

</script>

No comments:

Post a Comment