0

Why is innerHTML isn't work

I have a code and i need to use innerHTML but it isn't work, do you now why? https://code.sololearn.com/W14L5czBin2W/?ref=app

15th Aug 2020, 5:15 PM
Andrew Selezniov
Andrew Selezniov - avatar
2 Respostas
+ 5
SoloLearn puts scripts in JS tab in <head> Solution is to use window.onload, or put scripts in end of body, so DOM exists when JS runs. https://code.sololearn.com/WTKcpE36GgDT/?ref=app
15th Aug 2020, 5:22 PM
Gordon
Gordon - avatar
0
THANK YOU man
15th Aug 2020, 5:26 PM
Andrew Selezniov
Andrew Selezniov - avatar