Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Progressbar</title>
  
</head>
<body>
  Try to change the value of the "value" field in the progress element in the source and see the result in the drawing of the progress bar. <p>
  <progress id="pr" value="0" max="1000" >70 %</progress> 
</body>
</html>
 
var i=0;
window.setInterval(function (a,b) {
  i = (i+1) %1000;
  document.getElementById('pr').value = i;
},1);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
mrstevepro
0viewers