473,507 Members | 8,054 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1271


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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1795
by: Halldor Isak Gylfason | last post by:
I am faced with the task of porting a client application to a web architecture platform, e.g. to make it browser based. The technology I used was J2EE, e.g. servlets/JSP pages and HTML/javascript....
2
1417
by: Carl | last post by:
I want to load a javascript file on a root page with various iframes, then call the javascript functions from the root page to be displayed in the iframes. Any idea how to do this?
6
8976
by: Jane Withnolastname | last post by:
How can I include a file using JavaScript? document.write('<!--#include file="myfile.htm" -->') won't work because of the commenting. Is there a way to fool JavaScript into including the file...
5
5180
by: joaopedrogoncalves | last post by:
Hi, I want to load an external javascript file, get its results and stick them inside a <div> block. I also want to do this in several places on a web page. This way the browser doesn't have...
2
2768
by: dh | last post by:
How can a button that resides on the Main page tell the child Iframes to redirect without the page posting back? I keep getting a javascript error: "frames.iframe1 is null or not an object." I'm...
11
2200
by: Kent Feiler | last post by:
One thing I like about frames is that they're a good place to stow Javascript. Javascript that I'd like to be around while the visible content of the screen changes goes in the frame declaration...
3
10315
by: gencode | last post by:
I need to make a javascript read a web directory from a remote site (ie "http://remotesite.com/images") (The remote die does not have an index.htm and does have directory listing enabled) I...
6
1772
by: marckatsambis | last post by:
Hi, Apologies in advance if this seems long winded and confusing... I'm trying to make a javascript drop down menu work around multiple iframes. The initial page...
21
5590
by: wizdom | last post by:
I've tried a few things but nothing seems to work, i'm starting to think this isnt possible. I basically am looking to have the user click on the video number, then have the video load in its own...
0
7110
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7030
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.