<!DOCTYPE html>
<html>
<style>
#JavaScriptBar {
width: 100%;
background-color: #ddd;
}
#ProgressBar {
width: 10%;
height: 30px;
background-color: orange;
text-align: center;
line-height: 30px;
color: black;
}
</style>
<body>
<h1>Progress Bar</h1>
<div id="JavaScriptBar">
<div id="ProgressBar">10%</div>
</div>
<br>
<button onclick="move()">Click Me</button>
<script>
function move() {
var x = document.getElementById("ProgressBar");
var width = 10;
var id = setInterval(frame, 10);
function frame() {
if (width >= 100) {
clearInterval(id);
} else {
width++;
x.style.width = width + '%';
x.innerHTML = width * 1 + '%';
}
}
}
</script>
</body>
</html>
Program to implement Label Progress Bar.

Nitin Pandit
With over 10 years of vast development experience with different technologies, Nitin Pandit is Microsoft certified Most Valued Professional (Microsoft MVP) with a rich skillset that includes developing and managing IT/Web-based applications in different technologies, such as – C#.NET, ADO.NET, LINQ to SQL, WCF, and ASP.NET 2.0/3.x/4.0, WCF, WPF, MVC 5.0 (Razor), and Silverlight, along with client-side programming techniques, like jQuery and AngularJS. Nitin possesses a Master’s degree in Computer Science and has been actively contributing to the development community for its betterment. He has written more than 100 blogs/articles and 3 eBooks on different technologies to help improve the knowledge of young technology professionals. He has trained more than one lakh students and professionals, as a speaker in workshops and AppFests, conducted in more than 25 universities in North India.
