Targeting Frames: Hyperlink Targets
How, then, does a programmer specify which area should be updated when a hyperlink is selected? Netscape introduced a new hyperlink property,
target, specifically for this purpose. For each hyperlink, it is now possible to specify not just which document should be loaded, but also where that document should be displayed (i.e., the "target"). The format for a hyperlink with a target is
The variable target_name may be either
bottom" appearing in frameset document a.html, or
Implicit names are reserved words beginning with an underscore (_). Some of these are listed below:
- directs the browser to update the frame containing the activated hyperlink. This is usually the default target when no target is specified.
- directs the browser to update the parent frame of the frame containing the hyperlink. This only makes sense if the current frame is a child frame. Otherwise,
_parenthas the same effect as
_self. Later on I will clarify what I mean by "parent frame."
- directs the browser to update the entire window, regardless of the current frame layout.
Next: Targeting Frames: Frame Names
[ menu | previous page | next page ]