Home | Top | Website design | JavaScript Editor | ![]() | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves the window or frame at which to target content.
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.
Syntax
< ELEMENT TARGET = sTarget ... > |
object.target [ = sTarget ] |
Possible Values
sTarget | String that specifies or receives one of the following values.
|
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.
Example
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>Standards Information
This property is defined in HTML 4.0 and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
|
A , AREA , BASE , FORM , LINK |
Home | Top | Website design | JavaScript Editor | ![]() | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |