DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
change element text innerhtml keeping the elements or tags inside
document
.
getElementById
(
"tagname"
)
.
firstChild
.
data
=
text
;
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#change
#element
#text
#innerhtml
#keeping
#elements
#tags
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit