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

Chapter 5. Working With Browser Windows > Loading Different Contents into a Win...

Loading Different Contents into a Window

In the previous task, clicking on a link created a new window, filled with an image. But what if you have several links on a page, and you want them all to target the same new window? Script 5.2 demonstrates this technique. The main window in Figure 5.3 has three links. Clicking on any of the links opens a new window, filled with the image of the appropriate book. If you switch back to the main window and click on another link, the image in the smaller window is replaced.

Figure 5.3. Clicking on any of the three links opens the smaller window, and fills it with the cover image of the appropriate book.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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