0
Why isn't this code running?
Uncaught Typeerror cannot read property of null https://code.sololearn.com/WXQ2eT6zFZH8/?ref=app
1 ответ
+ 2
Just write :
window.onload = function(){
//your code
}
Because the document isn't fully loaded when the Javascript script begins.