I have an iframe which I would like to refresh every fifteen seconds, but I’m not sure how to do this or if it is even possible. If it is, how would I go about doing this without the use of JavaScript. If JavaScript is necessary then please post how I would do it in JavaScript. Thank you.
Share
You might be able to achieve this using a meta tag, inside the HEAD element of the HTML file being included inside the iframe:
This will refresh the page every 5 seconds. See the Wikipedia entry.
However, using JavaScript, this is the way to go:
This will reload the iframe with ID
my-iframeevery five seconds, by pointing it tohttp://some/url.