DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+6 =
Submit