0

Help. What am I doing wrong here? I'm trying to make the progress bar load incrementally up to 100.

https://code.sololearn.com/WECaz8sdGRBH/?ref=app

3rd Jan 2018, 4:40 AM
CherieLee Mason
CherieLee Mason - avatar
2 Réponses
+ 7
The DOM's not ready (the [JS] tab runs in <head>, before <body> loads). Wrap in onload(): window.onload=function(){ // your code }
3rd Jan 2018, 6:02 AM
Kirk Schafer
Kirk Schafer - avatar
+ 1
thank you, Kirk!
4th Jan 2018, 12:00 AM
CherieLee Mason
CherieLee Mason - avatar