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

Chapter 11. Frames > Targeting Frames

11.5. Targeting Frames

One of the challenges of managing a framed document is coordinating where linked documents display. By default, a linked document loads into the same frame as the link; however, it is often desirable to have a link in one frame load a page into a different frame in the frameset. This is the case when a list of links in a narrow frame loads content into a larger main frame on the page.

This is done by using the target attribute in the anchor (<a>) tag to specify the target frame by name. First, of course, it is necessary to assign a name to the frame using the name attribute in the <frame> tag as follows:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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