Sunday, January 11, 2015

How to Auto refresh a page one time.

<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> 

No comments:

Post a Comment

Thanks for your comment