Progress bar
_ Start 11 Stop 11 Zeruj |
var timeoutObject; var sek = 0; function display()
document.getElementByldf "pb" ).value = sek++; if( sek > 100 ) zeruj();
function starto
display();
window.timeoutObject = setlnterval( "displayO", 100 )
function stop()
window.clearlnterval( timeoutObject );
function zeruj()
document.getElementByldf "pb" ).value = sek = 0;
<body>
<hl>Progress bar</hl>
<progress id="pb" value="0" max="100"></progress>
<input type="button" value="Start" onclick="start()" /> <input type="button" value="Stop" onclick="stop()" /> <input type="button" value="Zeruj" onclick="zeruj()" /> </body>
</html>