How can I forceably reload an image that I'm dynamically regenerating (on the server), say every 5 seconds?

Jayesh Nazre

You can use the setInterval() function provided by JavaScript.


  • setInterval(expression, msec)
  • setInterval(function, msec[, arg1[, ..., argN]])
  • expression
    A string containing a JavaScript expression. The expression must be quoted; otherwise, setInterval calls it immediately. For example, setInterval("calcnum(3, 2)", 25).
  • function
    Any function.
  • msec
    A numeric value or numeric string, in millisecond units.
  • arg1, ..., argn
    The arguments, if any, passed to function.
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact