anchor Behavior

MS Office DHTML, HTML & CSS

anchor Behavior


Enables the browser to navigate to a folder view.

Syntax

XMLN/A
HTML<A STYLE="behavior:url('#default#AnchorClick')" ID=sID>
Scriptingobject.style.behavior = "url('#default#AnchorClick')"
object.addBehavior("#default#AnchorClick")

Possible Values

sID String that specifies a unique identifier for the object.

Members

Remarks

You can use the anchor behavior and the exposed folder property to display the files and folders on a Web server in a Web folder view, similar to the Microsoft® Windows® folder view. The folder property must be present for the folder navigation to occur. If the folder property is not included, the href on the A object is used as normal.

For this behavior to work, the Web Folders component of Microsoft® Internet Explorer must be installed. If the component is not installed and the behavior is invoked, Internet Explorer prompts the user to download the component. To open a Web address in folder view, the Web server must include a WebDAV server, available as of Microsoft® Internet Information Server 5, or support WEC extensions, available as of Microsoft® FrontPage® 2000.

Using the folder property with the anchor behavior to navigate to a folder view is the same as invoking the navigate or navigateFrame method from the httpFolder Behavior.

Internet Explorer 5 displays the value of the folder property when the mouse moves over the A object. Earlier browser versions can display the value of the href property in the status bar or as a title, so the file name and content of the earlier file version are important to keep in mind.

You can use the TARGET attribute to specify the window or frame that loads the specified location in the FOLDER attribute.

The anchor behavior is available as of Internet Explorer 5, only in the Microsoft® Win32® platform.

Example

This example uses the anchor behavior to navigate to a folder view.

Sample Code

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

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

<A HREF = "folder.htm" FOLDER = "/" >
Open Folder
</A>

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.
A

See Also

web folder behaviorsInternet Link

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.