TARGET Attribute | target Property

MS Office DHTML, HTML & CSS

TARGET Attribute | target Property


Sets or retrieves the name of a window or frame that is the target for navigation.

Syntax

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

Possible Values

sTarget String that specifies one or more of the following values:
name Name of the frame or window.
_self Linked document loads into the same window as the link.
_top Linked document loads into the topmost window.

The property is read/write, has no default value, and is case insensitive.

Remarks

The TARGET attribute is exposed to objects participating in the anchor behavior.

Example

This example uses the TARGET attribute and the anchor behavior to specify the name of a window or frame.

Sample Code

<STYLE>
   SPAN {behavior:url(#default#AnchorClick);}
</STYLE>

<!--
     The href points to folder.htm for earlier browser versions,
     the FOLDER attribute points to the local root.
 -->

<SPAN TARGET="_top" "FOLDER = "/" >
Open Folder
</SPAN>

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
anchor

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.