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

The contains Method

The contains method indicates whether an object contains another object (in terms of nested HTML elements), returning a value of true if so, and false otherwise. You can see the support for this method in Table 6.15.

Table 6.15. The contains Method
Method NS2 NS3 NS4 NS6 IE3a IE3b IE4 IE5 IE5.5 IE6
contains(object)       x x x x
  Returns: Boolean



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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