Webcam Javascript _autorefresh

Hello , i need help
I have a program wich generates some image files taked from a web cam.
When iti detects a movement , it generates a .bmp file.
I need to make a web page wich make the autorefesh with the last file
generated by the program.
How do i do that with javascript, how can i take the last page and
in a variable , how can i make my page to make the autorefresh with the
last file…
Can anybody help??:cool::cool:

Thanks in advance.

You can either use a META refresh tag at the top of your page to refresh the page at a set interval…e.g -

<META HTTP-EQUIV=Refresh CONTENT=“10; URL=http://www.mysite.com/”>

OR you could use a javascript function which is called by a setInterval or setTimeout function every so often to make an ajax request to a page which returns the newest image