Set Timeout (window.setTimeout) : window : Javascript Objects JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Javascript Objects » window »

 

Set Timeout (window.setTimeout)



    
<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>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Javascript Objects
» window