Frames targets. How to target a link to a window.
Targeting windows allows the document writer to assign names to specific windows, and target certain documents to always appear in the window bearing the matching name. Targeting controls where the new document will be displayed when the user follows a link. Most of the time, clicking on a link simply loads a new document in the same window where the link was. In this tutorial we will show you how to deliver the content you want in a new window, or if you are using frames, in another frame.
You should always remember to name your frames before you do anything else.
To open a page in frames using HTML
Use the following format
Where option is 'pagename'. In this case a page will be opened in a frame you named 'pagename'.
Target attribute also has four predefined values, which can be used as if certain windows and frames already have names without you having to assign them:
Note that each of predefined names starts with an underscore ("_"). They also must be in all lower-case letters.
onClick="parent.main.location.href = 'page2.html';
parent.lower.location.href = 'page3.html';
|Copyright © 2005-2007 www.WebCheatSheet.com All Rights Reserved.|