target attribute | target property
Sets or retrieves the window or frame at which to target content.
The name of the target window or frame.
Load the linked document into a new blank window. This window is not named.
Load the linked document into the immediate parent of the document the link is in.
Default. Load the linked document into the window in which the link was clicked (the active window).
Load the linked document into the topmost window.
The window name is an optional argument in the open scripting method.
If there is no existing window or frame with the same name as specified in the target, a new window is opened with a name equal to the value of the target.
Windows Internet Explorer 8 and later. When Protected Mode is enabled and a webpage contains an anchor link with a named target, Windows Internet Explorer opens the target of the link in a new window when the target has a different integrity level than the webpage containing the link. For more information, see Understanding and Working in Protected Mode Internet Explorer.
In Microsoft Internet Explorer 6, the value of the target parameter of this property specifies that a linked document loads in the content area of the target.
This example uses the target attribute to specify a link that loads the page into the topmost frame of the current frameset.