At first glance, both properties look like they do the same thing. While innerHTML provides a simple and convenient way to create HTML templates as strings and inject them into the DOM [Document Object Model], textContent only lets you create plain t...

Markdown supported · ⌘↵ to post
No responses yet.