0
Как сделать увеличение статуса загрузки
https://code.sololearn.com/W117efO8wzTv/?ref=app Какую программу на JavaScript надо сделать, чтобы она двигалась
1 Odpowiedź
+ 1
you should finish the javascript course...
however, to make increase (or decrease) the progress status (value), you should get a reference to the targeted element and update its 'value' property...
one way to do it:
document.querySelector('progress').value = 50;
this select the first progress element from the DOM and assign to its value property 50...
by the way, to let it update as animated, you shouls increase/decrease its value at regular interval to let the browser time to update display with the different values: you could use setTimeout, setInterval, requestAnimationFrame, or even better use it in an event handler related to some download (but that's another subject ^^)
hope this help! :)