Auto Refresh Image On Web Page
This page shows you how to auto refresh or auto reload an image on a web page, both in javascript as well as for regular people who have the need or desire to auto refresh an image on a web page.
Auto refreshing a web pages image is accomplished be requesting an image on a web server and appending the source of the image (the url where the image resides on the web server), with a unique query string with each request for a refreshed image.
The easiest and most reliable way to do this is to make the search query the current time (including seconds). For example, if the url of the image on the web server is http://yourwebserver.com/image-of-whatever.jpg
, adding a search query of the current time at the end of that url like so http://yourwebserver.com/image-of-whatever.jpg?time=234923489234
makes the web server think it is a unique image because of the search query.
The series of number that comes after ?time=
is...
Read All Of ➲ Auto Refresh Image On Web Page