Dmitry Dianov
Dmitry Dianov

Reputation: 1

Django. Automatically page refresh

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

Answers (1)

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

Related Questions