HTML_LINK Function

Sets up hypertext links to Uniform Resource Locations (URLs).

Usage

    link_text = HTML_LINK(url, text)

Input Parameters

url—A string or string array specifying the URL of the hypertext link.

text—A string or string array specifying the text displayed for the link.

Note: The two input parameters, url and text, must have the same number of elements.

Keywords

Safe—Handles HTML special characters (see HTML_SAFE).

Returned Value

link_text—A string or a string array of HTML hypertext links to URLs.

Discussion

The HTML_LINK function creates hypertext links that most HTML browsers commonly identify using an underline and/or a specific text color.

Note:

To make an image that activates a hypertext link, use the HTML_IMAGE function as the “text” in HTML_LINK as follows:

    link = HTML_LINK(url, HTML_IMAGE('imagefile.gif')

Example

This example creates a link to the Rogue Wave home page.

HTML_OPEN
HTML_HEADING, 'A Hypertext Link from HTML_LINK', $
   Level = 2, /Center
HTML_BLOCK, HTML_LINK('http://www.perforce.com', $
   'Rogue Wave Home Page')
HTML_CLOSE

See Also

HTML_BLOCK, HTML_IMAGE, HTML_LIST, HTML_OPEN, HTML_SAFE

Refer to HTML URLs and hyperlinks, see HTML Sourcebook, Second Edition, by Ian S. Graham, John Wiley & Sons, Inc., 1996, New York.