Javascript examples for DOM HTML Element:Meter
Meter min Property - Return the value of the max attribute in a gauge:
<!DOCTYPE html> <html> <body> <meter id="myMeter" min="0" low="40" high="75" max="100" value="65"></meter> <button onclick="myFunction()">Test</button> <p id="demo"></p> <script> function myFunction() {// w ww . j av a 2s . c o m document.getElementById("myMeter").min = "20"; document.getElementById("demo").innerHTML = "The value of the min attribute was changed from '0' to '20'."; } </script> </body> </html>