Meter value Property - Return the value of the value attribute in a gauge: - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Meter

Description

Meter value Property - Return the value of the value attribute in a gauge:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<meter id="myMeter" min="0" low="40" high="95" max="100" value="65"></meter>

<button onclick="myFunction()">Test</button>

<p id="demo"></p>

<script>
function myFunction() {/*w  ww .j  a  va 2 s .  co  m*/
    var v = document.getElementById("myMeter").value;
    document.getElementById("demo").innerHTML = v;
}
</script>
</body>
</html>

Related Tutorials