Specifying links

You can add, update, customize, and manage links from HTML and JSP files to other files and objects of other types.
You can specify links in several ways:
Option Description
Link Insertion dialog box Use this dialog box (Insert > Insert Link) to add links to e-mail addresses, external files or files that you have not yet created.
Properties view Use the Properties view when you need to add a link that will have special attributes.
Drag-and-drop link creation Use this method to select a file in the Project Explorer view or from the Thumbnails view, and drag it into a file that is open in the Design or Source page to create a link to it
Image Map editor Use the Image Map editor (Edit > Image > Edit Image Map) to define areas of an image to link to different files.
Tip: To change a link destination after you have defined the link, click the link source (text or an image), and then click Edit > Link > Edit Link to display the Properties view page where you can change the link destination.

To remove a link without deleting the linked text, click the link source and then click Edit > Link > Remove Link.

After you define and save links in an HTML or JSP file, you can view them in the Links view by selecting the Links tab. To switch to the Links view, on the workbench menu bar, click Window > Show View > Web > Links.

Default preferences determine how links to files outside your project are handled when the links are inserted and when you save files. By changing the defaults on the Links preference pages (Window > Preferences > Web Tools > Links), you can specify whether you want to fix broken links manually or have them fixed automatically, and set validation and refactoring options.

Related tasks
Inserting links in Web pages
Dragging links into Web pages
Opening links from an editor page
Updating link attributes

Feedback