FP97: Replace Command May Alter Hyperlinks

Last reviewed: March 18, 1998
Article ID: Q159436
The information in this article applies to:
  • Microsoft FrontPage 97 for Windows with Bonus Pack

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" (without the quotation marks) 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:

   http://www.w3.org/pub/WWW/MarkUp/


Additional query words: 97
Keywords : fpedit kbusage kbdta
Version : windows:97
Platform : WINDOWS
Hardware : x86
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 18, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.