Name
TARGET — NN all IE all HTML all
Synopsis
TARGET=”windowOrFrameName"Optional
If the destination document is to be loaded into a window or frame
other than the current window or frame, you can specify where the
destination document should load by assigning a window or frame name
to the TARGET attribute. Target frame names must
be assigned to frames and windows as identifiers. Assign names to
frames via the NAME attribute of the
FRAME element; assign names to new windows via the
second parameter of the window.open() scripting
method. If you omit this attribute, the destination document replaces
the document containing the link. An identifier other than one
belonging to an existing frame or window opens a new window for the
destination document. This attribute is applicable only when a value
is assigned to the HREF attribute of the element.
A link element can have only one destination document and one target.
If you want a link to change the content of multiple frames, you can
use an A element’s
onClick event handler or a
javascript: pseudo-URL to fire a script that loads
multiple documents. Set the location.href property
of each frame to a desired URL.
Example
<A TARGET="display" HREF="chap3.html#sec2">Section 3.2</A> <A TARGET="_top" HREF="index.html">Start Over</A>
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 ...
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