Skip to content

Instantly share code, notes, and snippets.

@AaronMT
Created June 6, 2011 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AaronMT/1011180 to your computer and use it in GitHub Desktop.
Save AaronMT/1011180 to your computer and use it in GitHub Desktop.
Progress Bar
<!DOCTYPE html>
<html>
<head>
<title>Progress Bar Test!</title>
</head>
<script type="text/javascript">
function changeValue() {
window.removeEventListener("load", arguments.callee, false);
window.setInterval(function() {
var pBar = document.getElementById("p");
pBar.value++;
}, 1000);
}
window.addEventListener("load", changeValue, false);
</script>
<body>
<progress id="p" value="0" max="100">70%</progress>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment