+ 1
Hello everyone, could you tell me please, why innerHTMl is identified as null?
3 odpowiedzi
+ 2
Sergei Keidzh Because JavaScript load before loading Html so you need to write JavaScript code inside onload event.
write Javascript code inside this
window.onload = function(){
}
or call your function like
window.onload = function(){
sty();
}
+ 2
Thanks a lot!