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:
- Open an HTML or JSP file in Page Designer.
- In the Design or Split 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.
- Select
Insert | Insert Link.
- 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.
- 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.
- Select one of the values in the
Target list box to designate where the link will open in relation to the current page.
- Click OK.
Tip:
When you want to reuse the alias in the future:
- Select
Insert | Link.
- Click Browse and select
Alias from the menu.
- Select the alias that you want to reuse from the list.
- 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
Opening links from an editor page
Disabling link validation for Web projects