Open cascading windows
Takeaway: With JavaScript, you can open more than one window consecutively. Here's how.
By Brent Lee Metcalfe
In addition to opening windows simultaneously, you can open more than one window consecutively. Suppose you build a site whose initial HTML file launches two subwindows from the main browser. The first subwindow could function as the primary information display, the second as a navigational device. This would allow users the option of closing the main browser, giving Web builders control over all navigational elements.
Each window is the parent (or opener) of the subwindow that opens after it. Pop-up 1 is launched from the main browser. Pop-ups 2 through 4 open when the preceding subwindow loads. The code below, for example, opens Pop-up 2 from the Pop-up 1 HTML file:
<script language="javascript">
function cascade2() {
<body … onLoad="cascade2()" … >
Brent Lee Metcalfe is a Web architecture consultant.
<!--
var no2 = null;
no2 = window.open('cascade2.html','cas2','dependent,width=175,height=175,left=20,top=20');
}
//-->
</script>
SponsoredWhite Papers, Webcasts, and Downloads
- Sprint IPVoice Connect Fact Sheet Sprint
- Case Study: GHS Data Management - Improving Data Protection and Storage Reliability for Critical Databases Dell EqualLogic
- Microsoft SQL Server and Dell EqualLogic PS Series Solution Brief Dell EqualLogic
- IBM Multiform Master Data Management: The evolution of MDM applications IBM
- Microsoft SQL Server 2005: Deployment and Tests in an iSCSI SAN Dell EqualLogic
Article Categories
- Security
- Security Solutions, IT Locksmith
- Networking and Communications
- E-mail Administration NetNote, Cisco Routers and Switches
- CIO and IT Management
- Project Management, CIO Issues, Strategies that Scale
- Desktops, Laptops & OS
- Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
- Data Management
- Oracle, SQL Server
- Servers
- Windows NT, Linux NetNote, Windows Server 2003
- Career Development
- Geek Trivia
- Software/Web Development
- Web Development Zone, Visual Basic, .NET

