|
|
|
|
|
|
|
|
|
|
|
|
How do I redirect multiple frames with one link? Links can normally only change one frame at a time. To change more than one, you'll need to get clever. And there are two ways to get clever. First, you could use multiple framesets. Rather than reloading the individual frames, just load a new frameset into the parent window / frames with the new files given in the FRAME tags. This is quite simple, but is not much use if you need to use it a lot since you'll end up with dozens of frameset files. The second option is to use Javascript. Create an A link in the normal way, but add an onClick attribute to effectively replace the HREF: <A HREf="#" onClick="parent.left.location='page1.html'; parent.right.location='page2.html';">Click here</A> This example assumes you've got two frames named "left" and "right" - obviously you'll need to change these bits to the names of your frames. The files page1.html and page2.html will then load in the left and right frames respectively. If you've got more than two pages to do, just copy and paste within the onClick attribute (from "parent" to the semi-colon) as often as required. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HTML Central is part of j-robinson.co.uk © James Robinson 2001 |
|
|
|
|