JavaScript Tutorial – search text keyword in HTML document GSMFRP

textContent is defined on the Node interface.
attribute DOMString? textContent;

The textContent attribute must,on setting, if the new value is null, act as if it was the empty string
instead, and then do as described below, depending on the context object:

-Let node be null.
-If new value is not the empty string, set node to a new Text node whose data is new value.
-Replace all with node within the context object.

-Replace data with node context object, offset 0, count length attribute value, and data new value.

Any other node
-Do nothing.
I highly recommend this book for beginners as well as advanced programmers:


Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top