Skip to content

Instantly share code, notes, and snippets.

@mnutt
Created January 2, 2012 19:19
Show Gist options
  • Save mnutt/1551774 to your computer and use it in GitHub Desktop.
Save mnutt/1551774 to your computer and use it in GitHub Desktop.
<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