<html>
<body>
<h3>演示如何创建 METER 元素</h3>
<p>点击按钮来创建包含指定值的 METER 元素。</p>
<button onclick="myFunction()">试一下</button>
<p><b>注释:</b>Internet Explorer 以及 Safari 5(以及更早的版本)不支持 value 属性。</p>
<script>
function myFunction()
{
var x = document.createElement("METER");
x.setAttribute("min", "0");
x.setAttribute("max", "100");
x.setAttribute("value", "65");
document.body.appendChild(x);
}
</script>
</body>
</html>