Hi,
I've been using innerHTML
and innerText
for a while to change elements and text on web pages and I've just discovered that they are not W3C standard.
I've now found that innerHTML
can be replaced with createElement
, setAttribute
and a few others but what is the best method for changing text inside an element?
I found a textContent
as well but is there a standard way and is it widly implemented across older browsers?