window.onload = function() { if(!window.location.hash) { window.location = window.location + '#loaded'; window.location.reload(); } } and I tried with this code also- (function() { if( window.localStorage ) { if( !localStorage.getItem('firstLoad') ) { localStorage['firstLoad'] = true; window.location.reload(); } else localStorage.removeItem('firstLoad'); } })(); but it is not working.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)