Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- refreshing JavaScript?


Purple_Martin - 6:03 am on Sep 11, 2002 (gmt 0)


You could do the following:

1. Put a span (with id) in the document where you want something displayed (instead of using a script tag).
2. Write a JavaScript function which changes the innerHTML property of the span to what you want displayed.
3. Make the function call itself every 10 seconds using setTimeout.
4. Call the function with the body onLoad event to get it started.

HTH


Thread source:: http://www.webmasterworld.com/javascript/189.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com