PDA

View Full Version : Help with Creating a loop in JavaScript


jskywalker
08-15-2002, 09:49 AM
I am a JavaScript cut and paster,though I'm also trying to learn.I have a problem with a script that has the following event handler:

onLoad="Message()"

I would like the event handler to run the sript continously.How can I do this?
Thank you.

J

glenngv
08-15-2002, 10:22 AM
onLoad="setInterval('Message()',1000)"

1000 (msec) is the time the interval the function is executed