The getTimeout() method is a method of the Alert class. It is used to return the timeout, in milliseconds, for a given Alert instance. The general syntax of this method is as follows:
It returns time either in milliseconds or FOREVER (when the timeout is set as FOREVER).
Become SUN SCMAD certified. Click here to get free CX310-110 SCMAD Mobile Application Developer exam practice questions.