FP98: How to Link to Two Target Frames Using a Single HyperlinkID: Q194099
|
If your FrontPage Web includes a frame set page, you can set a link to
specify the frame in which you would like a page to be displayed.
This article explains how to create a link that will be displayed as a
Uniform Resource Locator (URL) in a frame. (You can also use this procedure
to display URLs in multiple frames.)
NOTES:
Microsoft Technical Support will not resolve problems produced by editing
the HTML that FrontPage generates. This HTML Code sample is provided as a
convenience for authors seeking to extend the capabilities of FrontPage.
For more information about writing HTML, please see the following Microsoft
Web site:
http://msdn.microsoft.com/workshop/author/newhtml/default.htm
WARNING: ANY USE BY YOU OF THE HTML PROVIDED IN THIS ARTICLE IS AT YOUR OWN
RISK. Microsoft provides this HTML "as is" without warranty of any kind,
either express or implied, including but not limited to the implied
warranties of merchantability and/or fitness for a particular purpose.
To edit your hyperlink to update two frames, follow these steps:
onClick="parent.frames[<n>].location.href='<URL>';"
where <n> is a number indicating the frame that you want the
resource to appear in, and <URL> is the URL of the page that you
want to appear in that frame.
<a href="mypage.htm" onclick="parent.frames[2].location.href='otherpage.htm';">My Link</a>
will load Otherpage.htm into the third frame in the collection. If
you want to load additional frames, repeat step 6 for each frame
you want to load (separate each new entry with a space).
Additional query words: Front Page kbcode fpscript 98
Keywords : fphtml
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: July 1, 1999