I am creating a status page that should be updated periodically.
So, I updated http-equiv in the <head> section to refresh the page every minute:
<meta http-equiv="Refresh" id="refresh" content="60"/>
But for a browser that supports JavaScript, I would like to send an Ajax request, checking if the page should be updated or not. So, I would like to disable the http-equiv update in JavaScript (because it is Ajax that will do the job).
I tried removing the tag using JavaScript / PrototypeJs, but this does not work:
$('refresh').remove();
It seems that the browser is monitoring this timer and does not care about this DOM update.
Any idea?
source share