Auto refresh web page once on load, just put this script on your web page :
<script type="text/javascript"> $(document).ready(function(){
//Check if the current URL contains '#' if(document.URL.indexOf("#")==-1) { // Set the URL to whatever it was plus "#". url = document.URL+"#"; location = "#";
//Reload the page location.reload(true);
} }); </script>
atau
<script type="text/javascript"> if(location.search.indexOf('refresh') < 0){ var hash = window.location.hash; var loc = window.location.href.replace(hash, ''); loc += (loc.indexOf('?') < 0? '?' : '&') + 'refresh'; setTimeout(function(){window.location.href = loc + hash;}, 5000); } </script>
Related Search
Tags: #auto refresh #SCRIPT #web page