![]() |
|
One of the main benefits of frames is that you can use a link in one frame to open a page in another frame. The first step is to give the frame a name when you set up the frame definition. To do this, you use the name attribute of the <frame> tag to assign a unique name to the frame. <frame src="homepage.htm" name="main"> You can then use this name when you create a hyperlinks to direct pages into the frame. To create such a hyperlink, use the target attribute in the <a> tag. For example, the following tag creates a hyperlink that displays the page1.htm file in a frame named main: <a href="page1.htm" target="main">List of Components</a> |
More information Displaying documents in a specific frame |