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

+4

Because dont change the text??

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

5/26/2020 5:56:37 PM

JesusCanulk 🇲🇽

3 Answers

New Answer

+1

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

+4

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

+2

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 🐱 https://code.sololearn.com/WjThfJAZedTw/?ref=app