JavaScript Clock

JavaScript Timing

A script on this page starts this clock:

JavaSript setTimeout()

I will display when two, four, and six seconds have passed.

JavaScript Timing

Click "Try it". Wait 3 seconds. The page will alert "Hello".

Click "Stop" to prevent the first function to execute.

(You must click "Stop" before the 3 seconds are up.)