0

what is the problem here ? The code run on code pen without any errors!!

https://code.sololearn.com/W0Gx3XT4aBQ2/?ref=app

13th Feb 2018, 3:24 PM
Mostafa salem
Mostafa salem - avatar
4 Réponses
+ 3
Just wrap your JS script inside... window.onload = function() { // code }
13th Feb 2018, 3:37 PM
777
777 - avatar
+ 1
u can do it also by add onclick and give a name to function
13th Feb 2018, 3:41 PM
Hossam Hassan
Hossam Hassan - avatar
13th Feb 2018, 3:40 PM
Hossam Hassan
Hossam Hassan - avatar
0
uncaught type error: cannot set property 'onclick' of null line: 4
13th Feb 2018, 3:50 PM
Mostafa salem
Mostafa salem - avatar