Auto-refresh a webpage with javascript html
June 15th 2011
I’m currently working on an app that has a dashboard-style page that we needs to be automatically refreshed. After digging around, I realised that the code to do this was ridiculously trivial:
UPDATE
Frederic in the comments mentioned a way nicer way of doing this, without needing Javascript. Simple add a refresh meta tag in the header of your html.
e.g.
The browser automatically knows how to handle it, and you don’t need any messy javascript!
Find more information about meta refresh here: http://en.wikipedia.org/wiki/Meta_refresh