Auto refresh

Posted under » JavaScript on 22 March 2013

There are many ways to do this. This is but just one way

 window.onload = function() {
setTimeout("window.location.reload();", 30000);

There are 3 parts to this.

  1. window.onload - which stays in the memory
  2. setTimeout - timer to repeat
  3. window.location.reload() - same page reload

web security linux ubuntu python django git Raspberry apache mysql php drupal cake javascript css AWS IOT