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

Chapter 5. Using Core HTML Properties > The firstChild and lastChild Properties

The firstChild and lastChild Properties

The firstChild and lastChild properties return the first and last child nodes of a specific node, or a value of null if there is no such child. You can see the support for these properties in Table 5.22.

Table 5.22. The firstChild and lastChild Properties
Property NS2 NS3 NS4 NS6 IE3a IE3b IE4 IE5 IE5.5 IE6
firstChild    x    x x x
  Read-only
  Type: Node object
lastChild    x    x x x
  Read-only
  Type: Node object



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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