Javascript Reference
Categories: text

javascript text Description

@July 28, 2009, 8:55 a.m.
Text, TextNode Firefox/Netscape/NN 6 IE 5 Chrome/Safari/DOM 1  

 

  

A Text object is what this book calls in many places a "text node." Microsoft refers to this object as a TextNode object. This object represents the child object containing the characters that go between start and end tags of an element. The Text object exists in the abstract W3C DOM model by virtue of an inheritance chain between it and the fundamental Node object (Node to CharacterData to Text). The Node object ancestry automatically equips the Text object with a long list of properties and methods described among the shared items(the properties include: attributes, childNodes, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling; the methods are: appendChild( ), cloneNode( ), hasAttributes( ), hasChildNodes( ), insertBefore( ), isSupported( ), normalize( ), removeChild( ), replaceChild( )). Along this inheritance chain, the Text object gains some additional properties and methods (described below) that let us manipulate the node's content within the constructs dictated by the formal W3C DOM model. Because the DOM is scripting language-independent, you find properties and methods that may be more easily or more powerfully manipulated through JavaScript string handling. Feel free to use those techniques in a client-side JavaScript environment of the browser.

 

Scripts refer to the Text node (or IE TextNode object) only through references that locate the node in the document tree (such as the first child of a particular element node) or as returned by the document.createTextNode( ) method.

 
Object Model Reference
 
elementReference.childReference
textNodeReference.siblingReference
 
Object-Specific Properties
 
data length
 
Object-Specific Methods
 
appendData( ) deleteData( ) insertData( ) replaceData( )
splitText( ) substringData( )    
 
Object-Specific Event Handler Properties

None.

lipitor 10mg ca <a href="https://lipiws.top/">lipitor oral</a> purchase atorvastatin online
Lbcwkw - 1 months
its good
bhu - 2008-11-19

Powered by Linode.