How to set/get the value of Progress Bar using JavaScript ? Last Updated : 22 Dec, 2020 Comments Improve Suggest changes Like Article Like Report In this article, we are creating the progress bar of a task by using a <progress> tag. The <progress> tag is used to represent the progress of a task. It is also defined how much work is done and how much is left to download a thing. It is not used to represent the disk space or relevant query. The progress object in HTML DOM is used to represent the HTML <progress> element. The <progress> element can be accessed by using getElementById() method. Property Values: level: It returns the list of progress bar.max: It is used to set or return the progress bar value of max attribute.value: It represent the amount of work are already completed.position: It returns the current position of progress bar. Example: HTML <!DOCTYPE html> <html> <head> <title> How to set and get the value of Progress Bar using JavaScript ? </title> </head> <body style="text-align: center;"> <h1 style="color:green;"> GeeksforGeeks </h1> <h2> Set and Get the value of Progress Bar using JavaScript </h2> <P id="GFG"> Downloading progress for a song: </p> <button onclick="myGeeks()"> Submit </button> <script> function myGeeks() { // Create a progress element var g = document.createElement("progress"); // Set the value of progress element g.setAttribute("value", "57"); // Set the maximum value of progress element g.setAttribute("max", "100"); // Get the value of progress element document.getElementById("GFG").appendChild(g); } </script> </body> </html> Output: Before Button Click: After Button Click: Supported Browsers: Google ChromeInternet ExplorerFirefoxOperaSafari Comment More infoAdvertise with us Next Article How to set/get the value of Progress Bar using JavaScript ? V vkash8574 Follow Improve Article Tags : JavaScript Web Technologies JavaScript-Questions Similar Reads How to set the maximum value of progress bar using HTML ? In this article, we are creating the progress bar of a task by using a <progress> tag. The <progress> tag is used to represent the progress of a task. It is also defined how much work is done and how much is left to download a thing. It is not used to represent the disk space or relevant 1 min read Creating Progress Bar using JavaScript A Progress Bar is used to depict the progress of any task which is being carried out. Progress Bars are generally used to show the download and upload status. In other words, we can say that Progress Bars can be used to depict the status of anything that is in progress. There are several approaches 3 min read How to Set Color of Progress Bar using HTML and CSS ? The progress bar is an important element on the web, the progress bar can be used for downloading, marks obtained, skill measuring units, etc. To create a progress bar we can use HTML and CSS. The progress bar is used to represent the progress of a task. It also defines how much work is done and ho 2 min read How to Upload File with Progress Bar using Node.js ? Uploading files in NodeJS involves transferring files from the client's location to the server's location. A progress bar is a visual component that displays the percentage of the total file upload. In this tutorial, we will create a local server and demonstrate how to upload files to a destination 4 min read How to Create a Progress Bar using HTML? To create the progress bar of a task by using a <progress> tag. It is used to represent the progress of a task. It is also defined as how much work is done and how much is left. It is not used to represent the disk space or relevant query. Syntax:<progress attributes...> </progress 2 min read Like