Difference between revisions of "Category:Progress Element"

From Level Access Web Labs
Jump to navigation Jump to search
Line 2: Line 2:
  
 
<html>
 
<html>
<label id="l1">Percent complete</label>
+
<script type="text/javascript">
<progress aria-labelledby="l1" value="30" max="100"> Inner text</progress>
+
  function run() {
 +
    if ( document.getElementById('p1').value < 100) {
 +
      document.getElementById('p1').value =      document.getElementById('p1').value + 10;
 +
    }
 +
    setTimeout('run',5);
 +
  }
 +
</script>
 +
<body>
 +
  <label id="l1">Percent complete</label>
 +
  <progress id="p1" aria-labelledby="l1" value="30" max="100"> Inner text</progress>
 +
  <button onclick="run();"> Start </button>
 +
</body>
 
</html>
 
</html>
 
[[Category:Elements]]
 
[[Category:Elements]]
 
[[Category:HTML5]]
 
[[Category:HTML5]]

Revision as of 12:54, 14 July 2014

HTML5 Progress element

Inner text

This category currently contains no pages or media.