+ 1
Utility of node elements?
Hello, I don't understand what is The utility of the document.createTextNode function? Can someone help me please?
4 Respostas
+ 3
A text node is the way you can append text to an element.
You can use the appendChild function to append a textNode to an HTMLElement.
+ 4
You can also use element.innerHTMl which stores the inner HTML and can be edited with the = sign
0
So
If I want a new text when the user performs an action, I have to use this function alright?
But is there another utility?
0
Okay, I see now
Thank you very much :)