Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>本教程(w3big.com)</title> </head> <body> 下载进度条: <progress id="myProgress" value="22" max="100"> </progress> <p>点击按钮修改进度条value属性的值为 "75"。</p> <button onclick="myFunction()">点我</button> <script> function myFunction(){ document.getElementById("myProgress").value="75"; } </script> </body> </html>