Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set text of dom element

document.getElementById("myBtn").textContent = 'Hello World';
 
PREVIOUS NEXT
Tagged: #set #text #dom #element
ADD COMMENT
Topic
Name
2+6 =