Setup events to occur after a delay
Using setTimeout we can trigger an alert after 5000 milliseconds.
<form> <input onclick="setTimeout('alert(\'hello\')',1250);" type="button" value="Click for event" /> </form>
Call the routine dopause(5000) where 5000 is the number of milliseconds you would like the computer to pause. You're welcome to use this script on your site and to adapt it to suit.