+ 1
In the progress element, the value we are giving in code is showing in the web page, why it is not random upon the users wish
6 Respuestas
+ 3
Gourav Debnath
That kind of functionality is to be added with JavaScript
Lemme quickly make an example code!
+ 3
Here you go ANKIT
10 minutes of sprint code😪😂😅
https://code.sololearn.com/WihRv4JoX38U/?ref=app
+ 1
What do you mean by "random"? It's not some input element ,you need to add functionality to take input from user to add user specified value or be more clear if it's not what you are talking about
+ 1
I am telling that if we give the value such as 50 and 60 then in the webpage it will show the status is 50% or 60% why it is not random that means why it is not changing upon the users task
+ 1
You can use a little of javascript to make it functional
0
Try this
<body>
<progress id="pro" min="0" max="100" value="10"></progress>
<script>
var a = prompt("enter value less than 100 ");
document.querySelector("#pro").value = a ;
</script>
</body>