DEV Community

loading...

Discussion on: textContent VS innerText

Collapse
patarapolw profile image
Pacharapol Withayasakpunt

Another one is .textContent = '' is the fastest way to delete all children nodes.

Collapse
mohananagavenkat profile image
Mohana Naga Venkat Sayempu Author

Cool 😃. Great to know that, Thanks 😊

Collapse
dance2die profile image
Sung M. Kim

That's a nice tip~ Thank you, Pacharapol~