Skip to content
Related Articles

Related Articles

HTML | DOM Progress position Property

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 30 Jan, 2020

The Progress position Property in HTML DOM is used to return the current position of the progress bar. The value of this property is the result of dividing the current value (specified with the value attribute) by the maximum value (specifies with the max attribute).



Return value: It returns a floating point number representing the current position of the progress bar.

Below example illustrates the progress position property in HTML DOM:


<!DOCTYPE html> 
        HTML DOM Progress position Property 
    <h1 style="color:green;"
        DOM Progress position Property
    Downloading progress for a song: 
    <progress id = "GFG" value = "57"
                max = "100"
    <button onclick = "myGeeks()"
    <p id = "sudo"></p
        function myGeeks() { 
            var pr = document.getElementById(
                            .innerHTML = pr; 


Supported Browsers: The browsers supported by HTML DOM progress position property are listed below:

  • Google Chrome
  • Internet Explorer 10.0
  • Firefox
  • Safari 6.0
  • Opera

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!