Hyperlink to an inline frame on a non-frames page

J

jakuko

I would like to have a non-frames page with an inline frame on it. By
clicking hyperlinks on the non-frames page, I would like to change the
content of the inline frame. Is this possible? How so? When I have tried to
do this, the new content always opens in a new window.
 
G

Gam

jakuko said:
I would like to have a non-frames page with an inline frame on it. By
clicking hyperlinks on the non-frames page, I would like to change the
content of the inline frame. Is this possible? How so? When I have tried
to
do this, the new content always opens in a new window.

This is also my question!
 
C

Cheryl D Wise

What code are you using?

The iframe needs a name and that name must be in the link target.

<iframe id="mainFrame" name="mainFrame" width="98%" height="400px"
align="center" frameborder="no" scrolling="auto" src="intro.asp">Your
browser does not support iframes, please right click the link and select
open in new window.</iframe>

link code:

<a href="page.html" target="mainFrame">page</a>

--
Cheryl D. Wise
MS FrontPage MVP
http://mvp.wiserways.com
http://starttoweb.com
Online instructor led web design training in FrontPage,
Dreamweaver and more!
 
L

Larry

This can also be done with css using the following. You can link to a
location within the scroll table or goto the top by a link to scrolltop.
This uses an external stylesheet.

<div class="scroll right"><a name="scrolltop"></a>
data to be added here
</div>

Larry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top