469,275 Members | 1,675 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

Javascript and Iframes

Hi,

I am looking for a javascript that can open a link in an iframe. However,
the link on wich the user clicks, is from another iframe. So I have 2
Iframes and want to get a html page open in I2 when the user clicks on a
link in I1.

Is this possible with javascript?

Thanks
Joris
May 23 '06 #1
2 1171


Joris De Groote wrote:

I am looking for a javascript that can open a link in an iframe. However,
the link on wich the user clicks, is from another iframe. So I have 2
Iframes and want to get a html page open in I2 when the user clicks on a
link in I1.


Does the HTML target attribute not work for your?

<a href="whatever.html" target="iframe2Name">link</a>
<iframe name="iframe2Name" src="whatelse.html"></iframe>

--

Martin Honnen
http://JavaScript.FAQTs.com/
May 23 '06 #2
You know, it does work...
I made a stupid mistake with the naming of my IFrames (changed I1 and I2
from position).

Sorry about that, but thanks for letting me look @ it again.

Joris

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:44**********************@newsread2.arcor-online.net...


Joris De Groote wrote:

I am looking for a javascript that can open a link in an iframe. However,
the link on wich the user clicks, is from another iframe. So I have 2
Iframes and want to get a html page open in I2 when the user clicks on a
link in I1.


Does the HTML target attribute not work for your?

<a href="whatever.html" target="iframe2Name">link</a>
<iframe name="iframe2Name" src="whatelse.html"></iframe>

--

Martin Honnen
http://JavaScript.FAQTs.com/

May 23 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Halldor Isak Gylfason | last post: by
2 posts views Thread by Carl | last post: by
6 posts views Thread by Jane Withnolastname | last post: by
5 posts views Thread by joaopedrogoncalves | last post: by
11 posts views Thread by Kent Feiler | last post: by
3 posts views Thread by gencode | last post: by
6 posts views Thread by marckatsambis | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.