HBCMS更多的中文手册参考:

TARGET Attribute | target参数属性

DHTML文档教程

Sets or retrieves the window or frame at which to target content.

What's New for Microsoft® Internet Explorer 6

As of Internet Explorer 6, the _media value of the v parameter of this property specifies that a linked document loads in the HTML content area of the Media Bar.

dhtml语法

HTML<ELEMENT TARGET = sTarget... >
Scriptingobject.target [ = sTarget ]

DHTML可能的值

sTargetString that specifies or receives one of the following values.
name The name of the target window or frame.
_blankLoad the linked document into a new blank window. This window is not named.
_media  Load the linked document into the HTML content area of the Media Bar. Available in Internet Explorer 6 or later.
_parentLoad the linked document into the immediate parent of the document the link is in.
_searchLoad the linked document into the browser search pane. Available in Internet Explorer 5 or later.
_selfDefault. Load the linked document into the window in which the link was clicked (the active window).
_topLoad the linked document into the topmost window.

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

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

remarks

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.

the window name is an optional argument in the open scripting method.

DHTML代码范例

This example uses the TARGET attribute to specify a link that loads the page into the topmost frame of the current frameset.

<A href="newpage.htm" target="_top">go to new page.</a>

是否符合公共标准

This property is defined in HTML 4.0 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

A, AREA, BASE, FORM, LINK