FP97: Replace Command May Alter Hyperlinks (159436)



The information in this article applies to:

  • Microsoft FrontPage 97 for Windows with Bonus Pack

This article was previously published under Q159436

SYMPTOMS

In FrontPage Editor, when you use the Replace command, replaced text that was at the edge of a hyperlink anchor will no longer be included in the hyperlink.

CAUSE

When text is inserted by the Replace command, it is not given Hyperlink properties unless the replaced text is surrounded by characters that are part of an anchor tag.

WORKAROUND

To work around this behavior, use either of the following methods:

Method 1: If some hyperlink remains

If text that anchors a hyperlink has been replaced, but there is still a hyperlink on the adjacent text:
  1. Highlight both the replaced text and the remaining text (the text within the hyperlink).
  2. On the Edit menu, click Hyperlink Properties.
  3. Click OK.

Method 2: If the hyperlink is all gone

If text that anchored a hyperlink has been replaced and the hyperlink is no longer present, you must re-create the link.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

MORE INFORMATION

When text is given hyperlink characteristics, it is surrounded by HTML anchor tags <a> and </a>. For example, if you type the following text

homepage

and make it a hyperlink to the page "default.htm," the HTML code will resemble the following:
   <a href="default.htm">homepage</a>
				
If you then search for the word "page" and replace it with the word "front," the HTML code would be converted to this
   <a href="default.htm">home</a>front
				
In contrast, if you typed Welcome homepage for the text to use as the hyperlink, the HTML code would look similar to:
  <a href="default.htm">Welcome HomePage</a>
				
If you search for the word "Home" and replace it with the word "Front," the hyperlink anchor is unchanged, because the replaced text was surrounded by anchor text.
   <a href="default.htm">Welcome FrontPage</a>
				

REFERENCES

For information about the HTML markup language, see the World Wide Web Consortium Web site at:

Modification Type:MajorLast Reviewed:8/10/2001
Keywords:kbprb kbusage KB159436