Auto reload a page at a specified interval.
npm install auto-reload-page
import autoReloadPage from "auto-reload-page";
// Open url in a separate window and reload every 10 seconds
autoReloadPage("https://www.ipcc.ch/", 10000);
Auto reload a page at a specified interval.
Kind: global function
Param | Type | Default | Description |
---|---|---|---|
url | string |
Url to be opened | |
[interval] | number |
60 * 1000 |
Interval between each reload |
[title] | string |
""Page content auto reloading"" |
An optional page title for the separate window |
MIT. See license file.