Refresh Page for interval using js

Reddy picture Reddy · Aug 20, 2012 · Viewed 90.7k times · Source

How can i refresh a page for every one minute using javascript. Note: I don't have control/option to edit HTML body tag (where we usually call onload function).

Answer

Abraham picture Abraham · Aug 20, 2012

Just insert this code anywhere in the page:

<script type="text/javascript">
  setTimeout(function(){
    location = ''
  },60000)
</script>