Answers for "html change text"

0

set text of dom element

document.getElementById("myBtn").textContent = 'Hello World';
Posted by: Guest on March-05-2020
0

update html text

<script>
node.nodeValue="new value";
</script>
Posted by: Guest on September-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language