PDA

View Full Version : setTimeout()



james438
02-04-2011, 09:45 PM
Please let me know if I understand this correctly. setTimeout(), while it may be part of a function stored in the head of a document, if used correctly, can be used to evaluate an element and display the current value.

For example, it is used to update the current time and display the new time every second so as to give the appearance of a live clock. This live clock will only involve the specified element and other javascripts can still function, such as a document validation script.

Am I understanding this correctly?