Clear Interval : window : Javascript Objects JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Javascript Objects » window »

 

Clear Interval



    
<html>
<body>
<script language="javascript">
    var intInterval = 0
    function myInterval(){
        alert('Hello');
    }
</script>
<button onclick="intInterval=window.setInterval('myInterval()', 1000);">
Start interval
</button>
<button onclick="intInterval=window.clearInterval(intInterval);">
Stop interval
</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