Links & Navigation

target="_top"

Navigates the top-level browsing context, or the current context if already top-level. Embedded documents may be prevented from doing so by sandbox or user-activation restrictions. Used on links and forms, also via base and formtarget. Named browsing contexts are possible too. Navigation follows origin and sandbox rules.

Formal Syntax & Structure

html syntaxhtml
target="_top"

Parameters & Attributes

NameTypeDescription
targetkeywordNavigates the top-level browsing context, or the current context if already top-level. Embedded documents may be prevented from doing so by sandbox or user-activation restrictions.

Working Example

Example Snippethtml
<a href="#destination" target="_top">Go to destination</a><p id="destination">Destination</p>
HTML Reference