Inserting links in Web pages

The easiest way to create simple links in a Web page is to use the Insert Link dialog box. You can link to a file, an anchor, a servlet, or an alias, which is an anchor that is mapped to a fully-qualified resource. If you plan on reusing a resource address, you can register it as an alias, which is a simple, easy to remember string that you can reuse in the future.

To insert links into your Web pages:

  1. Open an HTML or JSP file in Page Designer.

  2. In the Design page, click the location where you want to add a link. Alternatively, you can select a text string if you want to use the word or phrase as the link text.

  3. Select Insert > Link.

  4. Click the type of link you want to add. The URL field shows the appropriate protocol prefix.

    • If you are creating a normal hypertext link, type or browse to find the resource that you want to link to.

    • If you are creating a mailto: link, in the URL field, type the address that you want to send mail to.

    • If you want to register an alias, click Register as Alias. In the Register as Alias dialog, for a URL value, type the alias string in the Alias column. Click OK.

  5. In the Link text field, specify the link text. If this field does not accept input, text selected in the HTML or JSP file is being used as the link text. This field is also disabled when an element such as an image is selected. No link text is generated.

  6. Select one of the values in the Target list box to designate where the link will open in relation to the current page.

  7. Click OK.

Tip:

When you want to reuse the alias in the future:

  1. Select Insert > Link.

  2. Click Browse and select Alias from the menu.

  3. Select the alias that you want to reuse from the list.

  4. Click OK. The URL that corresponds to the alias that you selected is shown in the URL field of the Insert > Link dialog box.

 

Related tasks

Dragging links into Web pages
Specifying links
Opening links from an editor page
Updating link attributes