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

Chapter 5. Using Core HTML Properties > The canHaveChildren Property

The canHaveChildren Property

When you’re constructing your own web pages in JavaScript (using Dynamic HTML or W3C DOM methods), it can be useful to see whether you’re dealing with an element that can contain children or not (for example, <BR> elements cannot). You can see the support for this property in Table 5.9.

Table 5.9. The canHaveChildren Property
Property NS2 NS3 NS4 NS6 IE3a IE3b IE4 IE5 IE5.5 IE6
canHaveChildren       x x x 
  Read-only
  Type: Boolean



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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