x
 
<!DOCTYPE html>
<html>
<body>
<h3>演示如何创建 PROGRESS 元素</h3>
<p>点击按钮来创建最大值为 100 而当前值为 22 的 PROGRESS 元素。</p>
<button onclick="myFunction()">试一下</button>
<script>
function myFunction()
{
var x = document.createElement("PROGRESS");
x.setAttribute("value", "22");
x.setAttribute("max", "100");
document.body.appendChild(x);
}
</script>
</body>
</html>