• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Using Core HTML Properties > The nodeValue Property

The nodeValue Property

The nodeValue property returns a node’s value—but note that this has meaning only for text nodes (where the node’s value is the text itself) and attribute nodes (where the node’s value is the value assigned to the attribute). For other nodes, such as element nodes, this property is null (which evaluates to false in Boolean conditions such as those you use in if statements). You can see the support for this property in Table 5.39.

Table 5.39. The nodeValue Property
Property NS2 NS3 NS4 NS6 IE3a IE3b IE4 IE5 IE5.5 IE6
nodeValue    x    x x x
  Read/Write
  Type: String, number, or null



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint