0
hello, why "innerHTML " do not work , it returns an error "can't play, innerHTML" of null""
JavaScript
4 ответов
+ 4
Because the JavaScript runs before the DOM loaded
How to solve
Write your code inside onload() function
Like this
window.onload = function(){
//Code
}
0
Hello! Please could you share the code in CodePlayground and link it here so we can understand the error you are having?
0
Thanks, I have done correction and it works very nice https://code.sololearn.com/WLAIVQWs20NM/?ref=app