0
"addEventListener" is not working on this...
If you know why tell me...
3 Respostas
+ 3
You need to ensure that the html is loaded before you try to get an html element in Javascript.
Put all your Javascript inside window.onload:
window.onload = () => {
// your code
}
+ 1
Can you share the code where you're experiencing the error?
0
https://code.sololearn.com/Wno9GNgl2Yh0/?ref=app
here is the code...