0
Help With innerHTML
The code playground is returning a script error when I am trying to use JS to replace the innterHTML of div „countNum“. What have I done wrong? https://code.sololearn.com/W9cSA9bNHTVC/?ref=app
4 Respostas
+ 3
This question has been asked multiple times.
Wait sometime
+ 1
KrOW Thank you for the reply, but I am still not clear on how that applies to my code problem. Are you suggesting that I use the “window.onload” somewhere instead of the simple “document.getElementById”? Or should I be writing my code in the HTML tab as a script at the end of the body element? Please help me to understand how this script execution applies to my specific code.
0
My code would make you a better understanding of how js is loaded and when you can access to dom elments... Try to read the html/js code (dont worry about function printInfo is only for print info in console) and follow execution on console