Clear Timeout : window : Javascript Objects JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Javascript Objects » window »

 

Clear Timeout



    
<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