+ 6
innerText vs innerHTML
Can anyone explain me the difference between innerText and innerHTML in Javascript. and when we use them.
1 Respuesta
+ 6
if you want not only text but also insert html into a element then you can do that with innerHTML.
Can anyone explain me the difference between innerText and innerHTML in Javascript. and when we use them.