34,333
edits
Changes
no edit summary
== Setting up a JavaScript Timeout ==
A JavaScript Timeout is specified using the ''setTimeout()'' method of the Window object. The ''setTimeout()'' method takes the action to be performed (a function call or in-line script) and the time to wait in milliseconds as arguments. The method returns a timeout ID that can subsequently be used to cancel the timeout. The syntax is as follows:
id=window.setTimeout(function, delay);