HTML | DOM Meter low Property

The DOM Meter low Property is used to set or return the value of the low attribute in a gauge. The low attribute is used to specify the range where the value of gauge is considered to be low. The value of the low attribute must be greater than the “min”, less than the “max” and “high” attribute.

Syntax:

  • It returns the low property.
    meterObject.low
  • It is used to set the low property.
    meterObject.low = number
  • Property Values: It contains a value i.e number which specify the floating point number that is considered to be a low value.

    Examples-1: This Example returns the low property.

    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

    <!DOCTYPE html>
    <html>
      
    <head>
        <title>
          DOM Meter low Property
      </title>
    </head>
      
    <body>
        <h1>GeeksforGeeks</h1>
        <h2>DOM Meter low Property:</h2>
      
        <!-- assigning id to meter with 
            properties. -->
        <meter value="0.6"
               max="0.9"
               min="0.1" 
               id="GFG" 
               optimum="0.6"
               high="0.5" 
               low="0.2">
      </meter>
      
        <br>
        <br>
        <button onclick="Geeks()">
            Submit
        </button>
      
        
        <p id="sudo"
           style="font-size:25px;
                  color:green;">
      </p>
      
        <script>
            function Geeks() {
      
                // Accessing 'meter' tag. 
                var g =
                    document.getElementById("GFG").low;
                document.getElementById("sudo").innerHTML =
                  g;
            }
        </script>
      
    </body>
      
    </html>

    chevron_right

    
    

    Output:



    Before Clicking On Button:

    After Clicking On Button:

    Example-2: This Example sets the low Property.

    filter_none

    edit
    close

    play_arrow

    link
    brightness_4
    code

    <!DOCTYPE html>
    <html>
      
    <head>
        <title>
          DOM Meter low Property
      </title>
    </head>
      
    <body>
        <h1>
          GeeksforGeeks
      </h1>
        <h2>
          DOM Meter low Property:
      </h2>
      
        <!-- assigning id to meter with 
            properties. -->
        <meter value="0.6" 
               max="0.9" 
               min="0.1"
               id="GFG"
               optimum="0.6"
               high="0.5"
               low="0.2">
      </meter>
      
        <br>
        <br>
        <button onclick="Geeks()">
            Submit
        </button>
      
        <p id="sudo" 
           style="font-size:25px;
                  color:green;">
      </p>
      
        <script>
            function Geeks() {
      
                // Accessing 'meter' tag. 
                var g =
                    document.getElementById("GFG").low =
                    "0.4";
                
                document.getElementById("sudo").innerHTML = 
                  "The value of the low attribute was changed to " 
                + g;
            }
        </script>
      
    </body>
      
    </html>

    chevron_right

    
    

    Output :

    Before Clicking On Button:

    After Clicking On Button:

    Supported Browsers: The browser supported by DOM Meter low Property are listed below:

    • Chrome
    • Firefox
    • Safari 6.0
    • Opera


    My Personal Notes arrow_drop_up

    Check out this Author's contributed articles.

    If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

    Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



    Improved By : shubham_singh



    Article Tags :
    Practice Tags :


    Be the First to upvote.


    Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.