Answers for "innerhtml and innertext in js"

3

HTML DOM innerText

var x = document.getElementById("myBtn").innerText;
Posted by: Guest on February-28-2021
5

js innerHTML

document.getElementById("Test").innerHTML = "<p style='color:red;'>Test</p>";
Posted by: Guest on December-04-2020

Code answers related to "innerhtml and innertext in js"

Browse Popular Code Answers by Language