Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening 2 windows in 1 click

Status
Not open for further replies.

MrsKensington

Programmer
Sep 26, 2001
28
GB
Hi!

I've got a page with 3 frames in it like this
Code:
 ______________
|  |           |
|  |           |
|  |    B      |
|A |           |
|  |           |
|  |___________|
|__|____C______|

In frame A I have a load of links. Some of them I want just to change frame B but others I want to change frame B & C.
The 1st bit is easy but i can't do the 2nd bit with straight HTML (at least I can't think of a way) so I was wondering if anyone knew of a way you can do it in Javascript.

Thanks a lot

Mrs K Ford? There's an infinite number of monkeys outside wanting to talk to you about a script of Hamlet they've produced!!
 
ooohh just worked it out!!!!

This was the code that did it!

Code:
<A href=&quot;file1.html&quot; target=C onClick=&quot;parent.frames['B'].location = 'file2.html';&quot;>Click Here</A>

so you could change as many frames as you liked!!!

ooohh this Document Object Model isn't as stupid as it looks.
Anyone know of a good diagram of it?

Thanks

Mrs K
Ford? There's an infinite number of monkeys outside wanting to talk to you about a script of Hamlet they've produced!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top