0

Why isn't this code running?

Uncaught Typeerror cannot read property of null https://code.sololearn.com/WXQ2eT6zFZH8/?ref=app

5th Feb 2019, 1:03 PM
Altaïr
Altaïr - avatar
1 Odpowiedź
+ 2
Just write : window.onload = function(){ //your code } Because the document isn't fully loaded when the Javascript script begins.
5th Feb 2019, 10:52 PM
Théophile
Théophile - avatar