473,388 Members | 1,277 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

How do I open two pages into another pages iframes?

1
I would like to know how to open two pages (from one link) into two different iframes on a different page. I already know how to open two pages in the iframes when they are on the parent page.

<script language="javascript">
function loadTwo(iframe1URL,iframe2URL)
{
parent.cover.location.href=iframe1URL
parent.text.location.href=iframe2URL
}

</script>

and
<a href="javascript:loadTwo('page1.htm','page2.htm')

how do I put this onto the non parent page, how do i open the parent page and then load the frame contents?

thank you
Jul 13 '07 #1
1 1214
acoder
16,027 Expert Mod 8TB
Welcome to TSDN!

If it's on the parent page and the call is made from a child window, use window.opener to refer to the parent. If it's on the child page, then store a reference to the child page when you you use window.open to open it:
Expand|Select|Wrap|Line Numbers
  1. var child = window.open(...);
Jul 14 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Theo | last post by:
Just a quick question... When including a page inside another (include('page.php')), is it bad for the second document to also have <head> and <body> tags etc? Im using iframes currently, and it...
0
by: William LaMartin | last post by:
I have recently started checking how accessible my web sites are to the Pocket PC using Pocket Internet Explorer (PIE). The main trouble I have discovered is with aspx pages in which I use an...
3
by: CJ | last post by:
I have a page with a bunch of iframes (which make up a tab control). At least one of these iframes contains an aspx page, which in turn contains a .ascx component. This component then contains a...
0
by: dhruba.bandopadhyay | last post by:
I know that it's possible to mix ASP & ASP.NET 1.1 in the same website/application so long as they are in separate frames (iframes). This also holds for mixing ASP & ASP.NET 2.0 pages. But what I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.