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 _self if there are no framesets defined in the window).

Default

_self

Object Model Reference

IE

[window.]document.all.tags(“base”)[0].target

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.