Free web development scripts for the webmasterDevelopment Scripts

 Site Navigation
 o Development Scripts
 o Text Only Edition
 o PHP.net News
 o Tutorials
 o Register an account
 o New entries this week
 o Affiliates/Links
 o Contact Us
 o About us
 o Advanced Search

 Browse Path
 o 6 users online
 o Most users online: 67
 o Home
  o Javascripts
   o Redirection/Links
    o Script

 Member Login
User Name
Password

 Standards
Valid XHTML 1.0!
Valid 
CSS!

 Recommended Links
 o PHP Freaks
 o Designer Baby Clothes
 o Advertise Here Make Money
 o Wedding Vendor Directory
 o Open Source Design
 o OxyScripts
 o designplace
 o Free Wedding Websites
 o devnet

Open two pages with 1 click (Rated 5)

Description:

Using JavaScript you can display two pages with one click, for example if you have a frame with index of hyperlinks and a main information page you can update the index to expand the options while displaying the requested information in the main frame.

Code starts here


<!--
this example assumes the page from two frames, frameIndex and frameContent
-->

<html>
<head>
<title>Your Title</title>
<!--
display in the frameContent by default
-->
<base target="frameContent">
</head>

<body>

<!--
build the index table however you like
-->
<table>
<tr>
<!-- update indexFrame and contentFrame -->
<td><a language="JavaScript" href="./page_to_display_in_frameIndex.htm" target="_self" onClick="parent.frameContent.location.href='./page_to_display_in_frameContent.htm'">Index Item 2</a></td>
<!-- update contentFrame only -->
<td><a href="./page_to_display_in_frameContent_only.htm" >Index Item 2</a></td>
</tr>
</table>
</body>
</html>


Last Edited: 1046135445


Submitted by Mat on 25-02-2003 1:10


Rate This Script

User Contributed Comments

Registered Members login
© Copyright 2003 - Devscripts.net