Javascript examples for DOM HTML Element:Progress
Progress max Property - Get the maximum value of a progress bar:
<!DOCTYPE html> <html> <body> Downloading progress:/*from www.jav a2 s.c o m*/ <progress id="myProgress" value="22" max="100"> </progress> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() { var x = document.getElementById("myProgress").max; document.getElementById("demo").innerHTML = x; } </script> </body> </html>