'setTimeout()' Example : setTimeout : Javascript Methods : JavaScript Reference examples (example source code) Organized by topic

JavaScript Reference
C++
PHP
JavaScript Reference Home »  Javascript Methods   » [  setTimeout  ]   
 



'setTimeout()' Example

    
<html>
<body>
<script language="javascript">
    var intValue = 0
    function myMethod(){
        alert('Hello');
    }
</script>
<button onclick="intValue=window.setTimeout('myMethod()', 1000);">Start timeout</button>
<button onclick="intValue=window.clearTimeout(intValue);">Stop timeout</button>
</body>
</html>

    
      
      
Related examples in the same category
1.  'setTimeout()' Syntax, Parameters and Note
2.  'setTimeout()' is applied to
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.