Created
January 2, 2012 19:19
-
-
Save mnutt/1551774 to your computer and use it in GitHub Desktop.
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
<html> | |
<body> | |
<h1>0</h1> | |
<script> | |
var element = document.getElementsByTagName("h1")[0]; | |
var counter = 0; | |
function manualAdvance() { | |
counter += 1; | |
element.innerHTML = counter; | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment