Share via


TARGET Attribute | Target Property

Sets or retrieves a value that indicates the window or frame at which to target the contents.

Syntax

Visual Basic  Public  Property Target As string
C# public  string Target { get; set; }
Managed C++ public:  __property string get_Target();
public:  __property void set_Target(string);
JScript public   function get Target() : string;
public   function set Target(string);

Possible Values

sTarget string that specifies or receives one of the following values:
nameThe name of the target window or FRAME.
_blankLoads the linked document into a new blank window. This window is not named.
_parentLoads the linked document into the immediate parent of the document that contains the link.
_searchLoads the linked document into the browser search pane. Available in Microsoft Internet Explorer 5 and later.
_selfDefault. Loads the linked document into the same window in which the link was clicked (the active window).
_topLoads the linked document into the topmost window.

The property is read/write. The property has a default value of _self.

Remarks

If there is no existing window or frame with the same name that is specified in the Target, a new window is opened with a name equal to the value of the Target.

Applies To

TreeBase, TREEVIEW

See Also

Internet Explorer WebControls, About the TreeView WebControl