New course! Every coder should learn Generative AI!
Try a free lesson+ 1
window.onload = function() {
document.getElementById("cab").innerHTML= "Hello World!";
};
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