Answers for "innerhtml and contenttext"

0

inner content

document.getElementById("myBtn").textContent;
document.getElementById("myBtn").innerHTML;
document.getElementById("myBtn").innerText;
// js dont have innerContent
Posted by: Guest on August-11-2020
7

HTML DOM innerText

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

Browse Popular Code Answers by Language