New course! Every coder should learn Generative AI!
Try a free lesson0
Fixing Java script
Can anyone fix this and send me back please please https://sololearn.com/compiler-playground/Wv1iCOc99qHy/?ref=app
1 Answer
+ 5
js can only find the html element once the document is fully loaded.
put all Javascript inside of
window.onload = function() {
// here goes all js
}