.ernnerhtml
// .innerHTML method is used to change the html contents of a DOM object
document.getElementById("demo").innerHTML = "Paragraph changed!";
subodhk
// .innerHTML method is used to change the html contents of a DOM object
document.getElementById("demo").innerHTML = "Paragraph changed!";
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";
<button onclick="this.innerHTML = Date()">The time is?</button>
table.innerhtml