FireworksColdFusionDreamweaverFreehandFlashMXHome
Past Week's New Content

Latest Free Content
View All
Free Content
Accessibility
CMX Learning Guides
Hosted by enterhost

How can I change 2 frames with one click?

Knowledge Base

Posted by Laurie Casolino

It's very simple to change the contents of two frames at the same time using DW's built in behaviors.

For instance, let's say you have a 3 framed site, top, left and main. You would like to change the contents of both the top frame and the main frame with one click of a button in the left frame. Easy peasy.

With your frameset file open (index.html) select the button or trigger image. Click on the + sign in the Behaviors panel and scroll down and select the "Go To Url" behavior. In the window that opens, you should see all your frames listed. Select the frame you want to change, browse to the page you want to have open in that frame. You will see a * appear next to the frame name. Without clicking "OK", select the second frame you wish to change, and browse to the page you wish to have load in that frame. Once you have selected all the frames you want to change with this one trigger, click ok. Check your Behavior Panel to make sure that the event is set to onClick if your trigger is a text link, or (onClick) if your trigger is an image.

That's it...you will now change 2 (or more) frames with one click.