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

Controlling iframes?

 


Dougie1
Is there a way to control iframes and make it go to links on the page it is pointing to? How would I do this? Thanks.
trefen
Do you mean: when you click on a link it will open in an iframe?

Add this property to the links: target="iframename" (replace iframename with the name of the iframe)

example:
Code:
<a href="http://www.frihost.com" target="myiframe">Frihost</a>
<iframe src="about:blank" name="myiframe"></iframe>


Hope it helped! Very Happy
Shike
What Trefen Said. I tend to think of them as I would regular frames, except that you can place it wherever you need within a normal page or <body> tag instead of using the <frameset> tags. So you can actualy have multiple iframes on a single page with text flowing around them as though they were pics or some other graphic.
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.