0
what is the problem here ? The code run on code pen without any errors!!
4 odpowiedzi
+ 3
Just wrap your JS script inside...
window.onload = function() {
// code
}
+ 1
u can do it also by add onclick and give a name to function
0
uncaught type error: cannot set property 'onclick' of null
line: 4