Opening Multiple Windows Simultaneously
Maybe you want to open more than one window at the same time (and really run the risk of seriously annoying the person browsing your site). You can do that with just a small addition to Script 6.4; you need to add a loop that opens a window every time it goes through the loop, as shown in Script 6.5.
Script 6.5. This script adds a loop to the previous script and opens multiple windows with a single click on a link.
To open multiple windows at the same time: