Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
innerText appending words weirdly - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
7mo ago
•
4 replies
brr
innerText appending words weirdly
https://codepen.io/latuza/pen/vENMEpB
Hi
, when I use
.innerHTML +=
.innerHTML +=
it reserves everyhting inlcuding classes on other tags
, and add text to it
. But
, when I use
.innerText +=
.innerText +=
, it destroys everything and just add the text
, why
?
CodePen
anon
Untitled
.
.
.
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Array().fill acts weirdly
KP-C
Kevin Powell - Community / help
7mo ago
CSS transition behaving weirdly
KP-C
Kevin Powell - Community / help
8mo ago
Where did I mess up the html
KP-C
Kevin Powell - Community / help
11mo ago
Font is not working
KP-C
Kevin Powell - Community / help
11mo ago