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.
Controlling iframes?
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:
Hope it helped!
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!
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.
