Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 825496 - Last Review: February 23, 2006 - Revision: 1.6
How to create one hyperlink that links multiple targets or frames in FrontPage 2003
This article describes how to create a single hyperlink in
Microsoft Office FrontPage 2003 that links to multiple targets.
Note This article assumes that you have already created a frames page
and saved it to your Web site.
Create the Hyperlink
- In FrontPage 2003, select the text where 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
- Click the Code (Show Code
View) 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 attribute between .htm" and > in the anchor tag:
onClick="parent.frames[n].location.href='URL';"
where n indicates the number of the
frame where 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:
<a target="rtop" href="SomePage.htm" onClick="parent.frames[2]
.location.href='AnotherPage.htm';">SomePage</a>
Note that because frame numbers start at zero, parent.frames[2]
indicates the third frame in a collection.
Note You may receive an error message if you copy the examples
directly from this article and paste them into FrontPage 2003. 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 2003. - On the File menu, click
Save.
APPLIES TO
- Microsoft Office FrontPage 2003
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate