Answers for "how to set text in js"

7

settext javascript

document.getElementById("myBtn").textContent = 'Hello World';
// OR
document.getElementById("p1").innerHTML = "New text!";
Posted by: Guest on August-28-2021
0

set text of dom element

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

javascript write text

document.write("your text");
Posted by: Guest on August-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language