FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

HELP! Iframe opens in new window - SOLVED

 


woundedhealer
Something has gone wrong with my iframe and the links are opening in new windows. I had it working right once, then the links started opening in new windows for no apparent reason. The src page opens ok in the iframe.
I've studied my coding so much and can't see what I've done wrong, so I hope somebody else can. It's probably something really silly.

Here's the coding for the iframe:-

<iframe src="oilyskin.htm" id="essentialoils" width="180" height="200" align="center" valign="top" scrolling="no" frameborder="no">
</iframe>

Here's the coding for the links:-

<div align="center"><a href="oilyskin.htm"
target="essentialoils">Oils for oily skin</a> <br>
<br>
<a href="matureskin.htm"
target="essentialoils">Oils for mature skin</a><br>
<br>
<a href="dryskin.htm"
target="essentialoils">Oils for dry skin</a><br>
<br>
<a href="dryskin.html"
target="essentialoils">Oils for sensitive skin</a
></div>


Last edited by woundedhealer on Thu Oct 26, 2006 12:30 pm; edited 1 time in total
sonam
What do you mean with

target="essentialoils"

How I know the target can be:

_blank loads the linked file in a new, unnamed browser window.
_parent loads the linked file in the parent frameset or window of the frame that contains the link. If the frame containing the link is not nested, the linked file loads into the full browser window.
_self loads the linked file in the same frame or window as the link. This target is implied, so you generally don't need to specify it.
_top loads the linked file in the full browser window, thereby removing all frames.

Sonam
LukeakaDanish
The target thing is fine - I think the only thing you need to do is to change the id="essentialoils" to name="essentialoils"
woundedhealer
LukeakaDanish wrote:
The target thing is fine - I think the only thing you need to do is to change the id="essentialoils" to name="essentialoils"


That's it. It works. You have no idea how happy you have made me. Very Happy Not to mention saving my sanity.
LukeakaDanish
woundedhealer wrote:
LukeakaDanish wrote:
The target thing is fine - I think the only thing you need to do is to change the id="essentialoils" to name="essentialoils"


That's it. It works. You have no idea how happy you have made me. Very Happy Not to mention saving my sanity.


Haha...your entirely welcome - as you can see it hardly took me long time to write...Cool

You could add "solved" to your topic title and/or ask a mod to close it...
woundedhealer
quote]You could add "solved" to your topic title and/or ask a mod to close it...[/quote]
Thanks - I'll do that.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.