Home

targetblank

Targetblank refers to the HTML behavior of opening a linked document in a new browsing context, typically a new tab or window. It is implemented using the anchor element with the target attribute set to "_blank" (for example, <a href="https://example.com" target="_blank">Example</a>). This approach is commonly used for external links or resources intended to keep the original page accessible.

Security considerations are central to target="_blank" usage. When a link opens in a new tab, the newly

Accessibility considerations apply to target="_blank" as well. Because opening a link in a new tab can be

Best practices for use include reserving target="_blank" for links that navigate away from the current content,

Browser support for target="_blank" is extensive across modern engines, making it a widely compatible method for

opened
page
can
access
the
original
page
via
window.opener,
creating
potential
security
and
performance
risks.
To
mitigate
this,
it
is
standard
practice
to
include
a
rel
attribute
such
as
rel="noopener"
or
rel="noopener
noreferrer"
in
combination
with
target="_blank".
This
severs
the
connection
between
the
two
pages
and
prevents
the
new
page
from
manipulating
the
original.
surprising
to
some
users,
many
guidelines
recommend
informing
users
when
a
link
will
open
in
a
new
tab.
This
can
be
done
with
explicit
link
text,
a
visible
or
accessible
label,
or
by
adding
aria-label
attributes
that
indicate
the
behavior
for
assistive
technologies.
such
as
external
sites
or
documents,
rather
than
for
primary
in-page
navigation.
When
used,
developers
should
ensure
that
the
purpose
is
clear,
provide
a
reliable
visual
cue,
and
implement
appropriate
security
via
rel="noopener"
or
rel="noreferrer".
controlling
link
behavior.