The onclick button is not functioning, any idea what might have caused this? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

The onclick button is not functioning, any idea what might have caused this?

https://code.sololearn.com/W7Zha2qqw2ZB/?ref=app

16th May 2019, 3:23 PM
Adefisoye Ayomide
Adefisoye Ayomide - avatar
2 Respostas
+ 1
It's the usual problem here of JavaScript running before the HTML is fully loaded. To fix it, simply encase everything in the JavaScript tab within: window.onload = function(){ All of your current JavaScript here } That will cause the JavaScript to not run until the HTML is fully loaded and so fixes that error.
16th May 2019, 3:25 PM
Decimis ā€  š•Æš–Šš–ˆš–Žš–’š–Žš–˜
Decimis ā€  š•Æš–Šš–ˆš–Žš–’š–Žš–˜ - avatar
+ 1
Thank you very much
16th May 2019, 3:30 PM
Adefisoye Ayomide
Adefisoye Ayomide - avatar