Setting events to occur after a delay
This is the right way to make something happen after a delay, using setTimeout to trigger an alert after 1250 milliseconds.
setTimeout("alert('hello')",1250);
Want to see it in action? No problem.
SOURCE | LINK | LANGUAGE | ENGLISH |