Name
TARGET — NN all IE all HTML 4
Synopsis
TARGET=”windowOrFrameName"Optional
If all or most links and area maps on a page load documents into a
separate window or frame, you can set the TARGET
attribute of the BASE element to take care of
targeting for all of those elements. You can set the
TARGET attribute without setting the
HREF attribute if you want to set only the base
target reference.
Example
<BASE TARGET="rightFrame">
Value
Case-sensitive identifier when the frame or window name has been assigned via the target element’s NAME attribute. Four reserved target names act as constants:
-
_blank Browser creates a new window for the destination document.
-
_parent Destination document replaces the current frame’s framesetting document (if one exists; otherwise, it is treated as
_self).-
_self Destination document replaces the current document in its window or frame.
-
_top Destination document is to occupy the entire browser window, replacing any and all framesets that may be loaded (also treated as
_selfif there are no framesets defined in the window).
Default
_self
Object Model Reference
- IE
[window.]document.all.tags(“base”)[0].target
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access