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

Chapter 5. Making Content Dynamic > Links to Multiple Frames

5.3. Links to Multiple Frames

It is not uncommon for the navigation bar in a frameset to contain links, or icons, that must load documents into two or more other frames of the frameset at the same time. For a single frame, the standard HTML link facilities work fine, since they let you specify a target frame with nothing more than plain attributes. But the attribute technique doesn't do the job for controlling the content of multiple targets. Scripting comes to the rescue, with a few different ways to accomplish the same goal:

  • Invoke a function from the element's onClick event handler to control both frames

  • Use a javascript: pseudo-URL to invoke a function to control both frames

  • Use the default link for one frame and the onClick event handler for the other


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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