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:

DocumentFragment
Element
-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.

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

Any other node
-Do nothing.

https://github.com/webtunings/youtube/blob/master/countKey.js

https://www.facebook.com/pages/WebTunings/339234242822202
I highly recommend this book for beginners as well as advanced programmers:


source

Leave a Comment

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

Scroll to Top