Reputation: 1
For example, I show on my page the schedule of trains. How can I make automatically page refresh, when it will be next minute? Only using javascript?
Upvotes: 0
Views: 258
Reputation: 118488
Look into javascript setTimeout
, and location.reload()
location.reload()
refreshes the page, and setTimeout
allows a function to be called in a certain amount of time.
Upvotes: 1