iframe for link parent window |
iframe for link parent window |
enahs |
Jun 3 2008, 02:34 PM
Post
#1
|
Group: Members Posts: 3 Joined: 3-June 08 Member No.: 5,814 |
I am using an IFrame to display content from other pages.
For example, say I used the following: CODE <iframe src="http://www.somewebsite.ext" id ="WHG" name="WHG" width="98%" ></iframe> Now, this iframe is already nested in a regular frame. It loads up the other page in the iframe great. It is wonderful. However, whenever a link is clicked on that page, it opens the link in the iframe windows and/or the regular frame the iframe is nested in. Is it possible to make it so that all links from the page loaded in the iframe will open up in the parent, i.e., full window of the page the iframe is on. So my page is loading in it, on a minisize, content from other pages using iframe. I want that content from other pages, when the link is clicked, to open up over everything and take over the page. |
Darin McGrew |
Jun 3 2008, 03:33 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Please see the FAQ entry How do I get out of a frameset?
|
pandy |
Jun 3 2008, 04:21 PM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Sounds like the framed page might be on another domain though. Then there is no way.
|
enahs |
Jun 4 2008, 07:26 PM
Post
#4
|
Group: Members Posts: 3 Joined: 3-June 08 Member No.: 5,814 |
|
Darin McGrew |
Jun 4 2008, 07:45 PM
Post
#5
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
Whether it's on another domain is irrelevant. What matters is whether you can update the framed documents so they target their links the way you want them to target their links.
|
iftakhar |
Jun 5 2008, 06:39 AM
Post
#6
|
Group: Members Posts: 6 Joined: 5-June 08 Member No.: 5,829 |
Dear want to check a i frame based web site go to my personnel web site which is
http://theartdrive.net it is made with the help of iframe and flash and java scripting and it basically a portfolio hope you like it. |
iftakhar |
Jun 5 2008, 06:40 AM
Post
#7
|
Group: Members Posts: 6 Joined: 5-June 08 Member No.: 5,829 |
Now you can see iframe can help you make a better web site
|
pandy |
Jun 5 2008, 06:55 AM
Post
#8
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
Whether it's on another domain is irrelevant. What matters is whether you can update the framed documents so they target their links the way you want them to target their links. I was thinking that if it was on the same domain it would be possible to alter the target with JS. Why one would do that is another matter. |
enahs |
Jun 5 2008, 07:37 AM
Post
#9
|
Group: Members Posts: 3 Joined: 3-June 08 Member No.: 5,814 |
Whether it's on another domain is irrelevant. What matters is whether you can update the framed documents so they target their links the way you want them to target their links. No I can not. That is why I was hoping there was a way in the iframe command to automatically force links to parent? |
Darin McGrew |
Jun 5 2008, 11:47 AM
Post
#10
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
QUOTE No I can not. That is why I was hoping there was a way in the iframe command to automatically force links to parent? Sorry, no. The framing document can't change the way the framed document targets it's links, except possibly with JavaScript. But JavaScript doesn't work across different domain names, as pandy pointed out. |
Darin McGrew |
Jun 5 2008, 11:48 AM
Post
#11
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
QUOTE Now you can see iframe can help you make a better web site Your iframed site exhibits all the normal problems with frames. |
Lo-Fi Version | Time is now: 24th April 2024 - 06:12 AM |