This procedure assumes that Microsoft FrontPage is installed under Microsoft Windows 2000, Microsoft Windows XP Professional, or Microsoft Windows XP Home, and that you have already created and saved a Web site.
Create the Hyperlink
- In FrontPage, select the text on which you want to create the hyperlink, and then click Hyperlink on the Insert menu.
- In the Insert Hyperlink dialog box, click to select the page that you want to link
to.
The page name appears in the Address box. - Click Target Frame, select an item in the Common targets box, or click one of the rectangles in the graphic, and then click OK.
- Click OK to close the Insert Hyperlink dialog box.
Modify Hyperlink Properties
- In FrontPage, click the HTML tab.
- Locate the hyperlink tag that you created in the "Create
the Hyperlink" section earlier in this article, for example:
<a target="rtop" href="SomePage.htm">SomePage</a>
- Insert the following onClick parameter between .htm" and > in the anchor tag where <n> indicates the number of the frame in which you want the resource to appear, and <URL> is the Uniform Resource Locator of the page that you want to appear in that frame. For example:
onClick="parent.frames[<n>].location.href='<URL>';"
Note that because frame numbers start at zero, parent.frames[2] indicates the third frame in a collection.<a target="rtop" href="SomePage.htm" onClick="parent.frames[2].location.href='AnotherPage.htm';">SomePage</a>
NOTE: You may receive an error message if you copy the examples directly from this article and paste them into FrontPage. The angle brackets (< and >) may appear as escaped HTML code (< and >). To work around this behavior, paste the script into a blank Notepad document, and then copy it from Notepad before you paste it into FrontPage. - On the File menu, click Save.