+ 2

How to create a simple loading bar in html.[solved]

21st Jun 2020, 7:37 AM
Varun N
Varun N - avatar
3 Answers
+ 8
show ur attempt first
21st Jun 2020, 7:37 AM
ÃKR
ÃKR - avatar
+ 3
<label for="file">Downloading progress:</label> <progress id="file" value="32" max="100"> 32% </progress>
21st Jun 2020, 7:48 AM
Varun N
Varun N - avatar
+ 3
onload = () => { setInterval(()={ document.querySelector("#file").value = Number(document.querySelector("#file").value) + 1; },1000/16); }
21st Jun 2020, 9:27 AM
Gordon
Gordon - avatar