Add a link using the hyperlink command, Set the relative path of new links – Adobe Dreamweaver CC 2015 User Manual
Page 345
338
Linking and navigation
Last updated 6/3/2015
• Shift-drag from the selection and point to a visible anchor in the current document, a visible anchor in another
open document, an element that has a unique ID assigned to it, or a document in the Files panel.
Note: You can link to another open document only if your documents are not maximized in the Document window. To
tile documents, select Window > Cascade or Window > Tile. When you point to an open document, that document
moves to the foreground of your screen while you are making your selection.
Add a link using the Hyperlink command
The Hyperlink command lets you create a text link to an image, an object, or to another document or file.
1
Place the insertion point in the document where you want the link to appear.
2
Do one of the following to display the Insert Hyperlink dialog box:
• Select Insert > Hyperlink.
• In the Common category of the Insert panel, click the Hyperlink button.
3
Enter the text of the link and, after Link, the name of the file to link to (or click the folder icon
to browse to the
file).
4
In the Target pop-up menu, select the window in which the file should open or type its name.
The names of all the frames you’ve named in the current document appear in the pop-up list. If you specify a frame
that doesn’t exist, the linked page opens in a new window that has the name you specified. You can also select from
the following reserved target names:
• _blank loads the linked file into a new, unnamed browser window.
• _parent loads the linked file into the parent frameset or window of the frame that contains the link. If the frame
containing the link is not nested, the linked file loads into the full browser window.
• _self loads the linked file into the same frame or window as the link. This target is the default, so you usually don’t
need to specify it.
• _top loads the linked file into the full browser window, thereby removing all frames.
5
In the Tab Index box, enter a number for the tab order.
6
In the Title box, enter a title for the link.
7
In the Access Key box, enter a keyboard equivalent (one letter) to select the link in the browser.
8
Click OK.
Set the relative path of new links
By default, Dreamweaver creates links to other pages in your site using document-relative paths. To use site root–
relative path instead, you must first define a local folder in Dreamweaver by choosing a local root folder to serve as the
equivalent of the document root on a server. Dreamweaver uses this folder to determine the site root–relative paths to
files.
1
Select Site > Manage Sites.
2
In the Manage Sites dialog box, double-click your site in the list.
3
In the Site Setup dialog box, expand Advanced Settings and select the Local Info category.
4
Set the relative path of new links by selecting the Document or Site Root option.
Changing this setting will not convert the path of existing links after you click OK. The setting applies only to new
links you create with Dreamweaver.