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

Chapter 7. Working with Browser Windows > Opening Multiple Windows

Opening Multiple Windows

Sometimes you'll want to open multiple windows using a script; for example you might want to create a script that opens a different window every time the user clicks an on-screen control. As usual, JavaScript is up to the task. In this example, we have a page with three links; clicking a link opens up a separate window containing an image; clicking another link brings up another window, one for each link. Script 7.4 shows you how it's done, and Figure 7.5 shows the result.

Script 7.4. When you need to open multiple windows from multiple links, this script does the trick.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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