Log in

View Full Version : Linking out of an iframe? Help can it be done?



tobnob
08-11-2006, 11:39 AM
Hi Please can somebody help I have been asked to make a site for someone and I wanted to use an iframe at the top of the page with the menu in and a scrolling ticker so that I can just change the iframe source file when the scroller needs changeing or the links in the menu etc. but my problem is that when i click the links they either open in the iframe or in a new window and i need it to open on the main page ican't work out if i can give the main windo a name to give the link a target or if somthing else is needed to get this effect.

I've scowerd the net and cant find anything telling me how to do this so I hope some highly inteligent person will come along and save the day!!
PPPLLLEEEAAASSSEEE!!! :confused:

jscheuer1
08-11-2006, 12:08 PM
This will open in the top page from inside an iframe but, if the new page doesn't have a similar iframe, the iframe will be gone.


<a href="some.htm" target="_top">Link Text</a>

That's just the way iframes work, they are a little different than regular frames.

tobnob
08-11-2006, 08:46 PM
Thanks for that if you knew the amout of things I tried to get it to do that!!!
I will come and ask you again if thats ok!