0
My event listener won't work
I keep getting an error whenever i write the addEventListener. Considers it null. What am i missing? https://code.sololearn.com/WSh1xoCXgela/?ref=app
2 Respuestas
+ 3
https://www.sololearn.com/post/90825/?ref=app
https://www.sololearn.com/discuss/2452002/?ref=app
0
Try
document.onload = () => {
//Js code here
}