View Full Version : i-frames question


kageru hinoryu
07-06-2005, 05:01 AM
hi, I have a problem with my i-frames. If my I-frame is set to my main webpage, but I decide to click a link on the site navigator, the whole outside layout vanishes and goes back straight onto the actual text page. how do I do a link what displays the site inside the i-frame?

my website is at freewebs.com/phantom-shadow (even though some of you may not like phantom of the opera xD;) and after the splash you see a main page. well, if you click on the link on main, it loses the actual layout. :grouch:

kageru hinoryu
07-06-2005, 05:04 AM
my website is at freewebs.com/phantom-shadow (even though some of you may not like phantom of the opera xD;) and after the splash you see a main page. well, if you click on the link on main, it loses the actual layout. :grouch:

Valkyrie
07-06-2005, 05:19 AM
Add target="main" to your link code. When you want links to open up in frames, you need to target the link to the frame. You do that by adding target="main" (In your case, its "main" because thats the name of the iframe.) to the code. The target is the name of the iframe, so its important that they match, so they'll work. :p

onigiri
07-06-2005, 05:20 AM
First, you'll need to name your iframe. To do that, add this to your iframe tag:
name="What you want to name your iframe"

kageru hinoryu
07-06-2005, 05:37 AM
where does the "target main" go? xC

EDIT:
nevermind. ^^

kageru hinoryu
07-06-2005, 05:39 AM
nevermind. ^^