Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

settext javascript

document.getElementById("myBtn").textContent = 'Hello World';
// OR
document.getElementById("p1").innerHTML = "New text!";
 
PREVIOUS NEXT
Tagged: #settext #javascript
ADD COMMENT
Topic
Name
3+5 =