Created
May 17, 2011 02:39
-
-
Save quake/975794 to your computer and use it in GitHub Desktop.
jscex clearInterval
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var canvas = document.getElementById("clockCanvas"); | |
var ctx = canvas.getContext ? canvas.getContext("2d") : null; | |
var intervalId = setInterval(function () { | |
drawClock(new Date()); | |
}, 1000); | |
</script> | |
<a href="#" onclick="clearInterval(intervalId);">Stop</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment