Monday, 1 July 2013

How to make your webpage auto refresh / reload!


Some web pages contain information which requires being refreshing after a seconds or minute to get updated information.

And making them refreshing by manual is a boring and odd tasks.

So, here is a solution.

Mozilla browser add-ons ReloadEvery or Auto Reload and Chrome reload for browser Chrome.

ReloadEvery :



Reloads web pages every so many seconds or minutes. The function is accessible via the context menu (menu you get when you right click on a web page) or via via tab context menu (in Firefox 4.0)

Randomize feature: if you enable Randomize and have reload time set to 10s it will randomly take somewhere between 5 to 15 seconds.

Auto Reload :




Automatically reloads matching tabs when selected local files change (useful for web developers).

Also can automatically reload file:// tabs when underlying local files change.

Available Javascript reload code replacements:
$FILE - path to local file
$MTIME - file last modification time
Example:
var file = '$FILE';
var mtime = '$MTIME';
alert(file + ' was modified at' + mtime);
Advanced settings (via about:config):
"extensions.autoreload.filter" - custom file filter applied when adding/watching folders.
Example: "(py|html|js|css)$"

Chrome reload :





Automatically reload a page. Configure how often each page reloads and see a count-down until the next load.


0 comments:

Post a Comment