What is the setTimeout() method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the setTimeout() method?
Rating:
The setTimeout() method is a method of the Alert class. It is used to set the timeout of an Alert. The general syntax of this method is as follows:
Here, the time parameter specifies the time for which the Alert will be shown on the screen. It must be a positive value greater than zero. The timeout is in milliseconds.
It also takes a constants value Alert.FOREVER, which makes the Alert modal.
Rating:
Was this information helpful?
Other articles
- What is the append() method?
- What is the enumerateRecords() method?
- What is a Player?
- What is a JAD file?
- What is the notifyIncomingMessage() method?