• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 13. Understanding and Building Fram... > Using the Go To URL Behavior to Load...

Using the Go To URL Behavior to Load Frames

The Go To URL behavior has the capability to target frames and is a good way to get content to load into two frames at once. For instance, you might want to change both the table of contents and the main content frames when the user clicks on a hyperlink in the frame called banner. The user may select a different section of the content that has a different table of contents and main content Web pages. Since a hyperlink can change the contents in only one frame, you have to use the Go To URL behavior. To use the Go To URL behavior

1.
Select an object in the frame called banner to hyperlink. Add some text and make it a hyperlink if you haven't added any content yet.

2.
Place javascript:void(0); into the Link box in the Property inspector to create a null link.

3.
Open the Behaviors panel from the Window menu. With the hyperlink that you just created, select the + button in the Behaviors panel and select Go To URL.

4.
The Go To URL dialog box opens. Select the frame named toc, as shown in Figure 13.14. Enter an URL in the URL box, and then click OK.

Figure 13.14. The Go To URL dialog box enables you to select the target frame for the URL.


5.
Select the Go To URL action by double-clicking it in the Behavior panel.

6.
Notice that there is an asterisk by the frame named toc. That means that there is an URL entered for this frame (you entered it in step 4 above). Add another URL to a different frame by first selecting the frame named main. Enter an URL in the box below and click OK.

7.
Save the frames and preview the page in a browser. Click on the link in the top frame and both lower frames should have the new URLs load.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint