Apply the go to url behavior, Apply the jump menu behavior, Apply the jump menu go behavior – Adobe Dreamweaver CC 2015 User Manual
Page 426

419
Javascript
Last updated 6/3/2015
Apply the Go To URL behavior
The Go To URL behavior opens a new page in the current window or in the specified frame. This behavior is useful for
changing the contents of two or more frames with one click.
1
Select an object and choose Go To URL from the Add Behavior menu of the Behaviors panel.
2
Select a destination for the URL from the Open In list.
The Open In list automatically lists the names of all frames in the current frameset as well as the main window. If
there are no frames, the main window is the only option.
Note: This behavior may produce unexpected results if any frame is named top, blank, self, or parent. Browsers
sometimes mistake these names for reserved target names.
3
Click Browse to select a document to open, or enter the path and filename of the document in the URL box.
4
Repeat steps 2 and 3 to open additional documents in other frames.
5
Click OK and verify that the default event is correct.
Apply the Jump Menu behavior
When you create a jump menu by using Insert > Form > Jump Menu, Dreamweaver creates a menu object and attaches
the Jump Menu (or Jump Menu Go) behavior to it. There is usually no need to attach the Jump Menu behavior to an
object by hand.
You can edit an existing jump menu in either of two ways:
• You can edit and rearrange menu items, change the files to jump to, and change the window in which those files
open, by double-clicking an existing Jump Menu behavior in the Behaviors panel.
• You can edit the items in the menu just as you would edit items in any menu, by selecting the menu and using the
List Values button in the Property inspector.
1
Create a jump menu object if there isn’t one already in your document.
2
Select the object and choose Jump Menu from the Add Behavior menu of the Behaviors panel.
3
Make changes as desired in the Jump Menu dialog box and then click OK.
Apply the Jump Menu Go behavior
The Jump Menu Go behavior is closely associated with the Jump Menu behavior; Jump Menu Go lets you associate a
Go button with a jump menu. (Before you use this behavior, a jump menu must already exist in the document.) Clicking
the Go button opens the link that’s selected in the jump menu. A jump menu doesn’t normally need a Go button;
selecting an item from a jump menu generally causes a URL to load without any need for further user action. But if the
visitor selects the same item that’s already chosen in the jump menu, the jump doesn’t occur. In general, that doesn’t
matter, but if the jump menu appears in a frame, and the jump menu items link to pages in other frames, a Go button
is often useful, to allow visitors to re-select an item that’s already selected in the jump menu.
Note: When you use a Go button with a jump menu, the Go button becomes the only mechanism that “jumps” the user to
the URL associated with the selection in the menu. Selecting a menu item in the jump menu no longer re-directs the user
automatically to another page or frame.
1
Select an object to use as the Go button (generally a button image), and choose Jump Menu Go from the Add
Behavior menu of the Behaviors panel.
2
In the Choose Jump Menu menu, select a menu for the Go button to activate and click OK.