Links & Navigation

target="_parent"

Navigates the immediate parent browsing context, or the current context if there is no parent. Sandbox and navigation rules may block the action. 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="_parent"

Parameters & Attributes

NameTypeDescription
targetkeywordNavigates the immediate parent browsing context, or the current context if there is no parent. Sandbox and navigation rules may block the action.

Working Example

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