Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
window.onload = function() { document.getElementById("cab").innerHTML= "Hello World!"; };
4th May 2020, 1:12 AM
ChaoticDawg
ChaoticDawg - avatar
0
You didn't even called a function. And have to use onclick attribute to call a function in HTML See this code.. You will find answer... Thank You https://code.sololearn.com/WLFkOUGeFZFa/?ref=app
4th May 2020, 1:39 AM
Eswar V