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

Chapter 19. The Document Object Model > JavaScript Object Arrays

JavaScript Object Arrays

Before you read about the other objects in the Web browser object hierarchy, now is a good time to learn about JavaScript's object array. An object array is used by JavaScript to reference objects when more than one of the objects is in the current window or document (known as multiple instances of the object). An XHTML document is likely to contain more than one hypertext link, for example, so more than one link and anchor object will be present. Each form requires a separate form object, each image an image object, and so on.

JavaScript gives you multiple ways of referencing and accessing these objects. Consider the following excerpt of XHTML code, for example:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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