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

Hour 14. Using Frames to Display Multipl... > 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 using it is an easy 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 a hyperlink in the banner frame. The user may select a different section of the content that has a different table of contents and main content web pages. Because 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, follow these steps:

1.
Add a hyperlink in the banner frame at the top of the page.

2.
Type javascript:; into the Link box in the Property inspector to create a null link.

3.
Open the Behaviors panel (Window, Behaviors); make sure you don't open the Server Behaviors panel—that is a different panel. With the hyperlink selected, click the + button in the Behaviors panel and select Go to URL.

4.
The Go to URL dialog box opens. Select the frame named toc from the Open In list box, as shown in Figure 14.15. Enter a URL in the URL box and press the Tab key to record your changes.

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


5.
Notice that there is an asterisk by the frame named toc. That means that there is a URL entered for this frame (you entered it in step 4). Add another URL to a different frame by first selecting the frame named main and then entering a URL in the URL box. Now both frames will load new URLs when the link is clicked. Click OK to save the behavior settings.

6.
Save the frames and preview the page in a browser. Click the link in the top frame. 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