Created
June 6, 2011 21:35
-
-
Save AaronMT/1011180 to your computer and use it in GitHub Desktop.
Progress Bar
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
<!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