Because dont change the text?? | SoloLearn: Learn to code for FREE!


Because dont change the text??

5/26/2020 5:56:37 PM

JesusCanulk 🇲🇽

3 Answers

New Answer



You must use document functions in window.onload function. Example: window.onload=()=>{ document.querySelector("p").innerHTML="hello"; };


Jesus Eduardo Canul Koyoc , first you should load the html before manipulate elements (with window.onload call), also change the property to "innerHTML". Look at the corrected code and hope it helps you 🐱