4th Jul 2020, 10:57 AM
Sameer Crestha
Sameer Crestha - avatar
3 Respuestas
+ 5
window.onload = function(){ var sec = document.getElementsByTagName("section"); sec[0].innerHTML = "Hello"; }
4th Jul 2020, 11:23 AM
Precious Brohie
Precious Brohie - avatar
+ 2
U didn't place parentheses in your function.. And getElementsByTagName.. Its elements not element
4th Jul 2020, 11:24 AM
Precious Brohie
Precious Brohie - avatar
0
window.onload = function{ var sec=document.getElementByTagName("section"); sec[0].innerHTML="Hello"; }
4th Jul 2020, 11:14 AM
Criticoal