<a> innerhtml change text js code example
Example 1: change text of element js
document.getElementById("p1").innerHTML = "New text!";
Example 2: js innerHTML
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";
document.getElementById("p1").innerHTML = "New text!";
document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";