Click to return to the DHTML, HTML     
systemLanguage Property     TIMEACTION Attribute | ti...     Default Behaviors Referen...    
Web Workshop  |  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:
anchor


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.