+ 1
Why i am not able to use addEventListener
4 Antworten
+ 3
Js script is getting loaded before html so obviously getting the element that doesn't exist yet returns null ,to avoid this use
window.onload=function(){
js code goes here
}
Also search for similar questions pls, you will get many more ways and much detailed answers ,it has been asked many times,
+ 1
Thanks brother
0
Thanks bro
0
This happen only in sololearn?