How can i make it run? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
16th Apr 2024, 9:05 AM
uyiee_ dalubatan
uyiee_ dalubatan - avatar
1 Resposta
+ 4
Place your whole js code inside thisā¤µļø It solve the error! window.onload = function() { //js code } About the error: The "addEventListener Error" commonly occurs when trying to attach an event listener to an element before the element has been fully loaded in the DOM. This can happen if the script containing the event listener is executed before the element exists in the HTML document.
16th Apr 2024, 9:24 AM
`Š½Ń‚Ń‚pā“ā°ā¶
`Š½Ń‚Ń‚pā“ā°ā¶ - avatar