'setTimeout()' Syntax, Parameters and Note : setTimeout « Javascript Methods « JavaScript Reference

Home
JavaScript Reference
1.Event Handlers Reference
2.Javascript Collections
3.Javascript Methods
4.Javascript Objects
5.Javascript Properties
JavaScript Reference » Javascript Methods » setTimeout 




'setTimeout()' Syntax, Parameters and Note

Note:

Set the timer and cancel it by the clearTimeout().
    
Syntax:
    
window.setTimeout(param1, param2, param3)

Parameters:
    param1   Required; a function name or string of code that will execute when the timeout has elapsed.
    param2   Required; the length of the timeout in milliseconds.
    param3   Optional; param1's script language. 
                       JScript, 
                       vbscript, 
                       vbs, 
                       javascript, 
                       XML.
    

      
      














Related examples in the same category
1.'setTimeout()' Example
2.'setTimeout()' is applied to
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.