After the subsbring is displayed, the value of Offset is incremented and set-Timeout() is called to create a short pause before the next substring of the message is displayed. The setTimeout() function has two parameters: The fi rst is the name of the function that is called after the timeout period is completed. In this example, the Display() function is called after the timeout. The second parameter is the length of the timeout indicated in milliseconds; 1000 milliseconds equals 1 second. We use 40 milliseconds, but you can increase or decrease this value to whatever works for your application. The setTimeout() function re-turns a reference to the Clock, which is used in the Pause() function to clear the timeout clock.
The MesgDisplayed variable is then set to true, indicating that a portion of the message is displayed on the status bar.
"-//W3C//DTD XHTML 1.0 Transitional//EN">