anchorClick Behavior
This topic documents a feature of Binary Behaviors, which are obsolete as of Internet Explorer 10.
Enables the browser to navigate to a folder view.
Syntax
XML <Prefix:
CustomTag
ID=
sIDSTYLE="behavior:url('#default#AnchorClick')"
/>HTML <A STYLE="behavior:url('#default#AnchorClick')"
ID=
sID>Scripting object .style.behavior = "url('#default#AnchorClick')"
object .addBehavior ("#default#AnchorClick")
Possible Values
Prefix Prefix that associates the CustomTag with an XML namespace. This prefix is set using the XMLNS attribute of the HTML tag. CustomTag User-defined tag. sID String that specifies a unique identifier for the object.
Members Table
The following table lists the members exposed by the anchorClick object.
Attribute Property Description FOLDER folder Sets or retrieves a namespace extension, address, or path. TARGET target Sets or retrieves the name of a window or frame that is the target for navigation.
Remarks
You can use the anchorClick behavior and the exposed FOLDER attribute to display the files and folders on a Web server in a Web folder view, similar to the Windows folder view. The FOLDER attribute must be present for the folder navigation to occur. If the FOLDER attribute is not included, the HREF on the A object is used as normal.
For this behavior to work, the Web Folders component of Windows 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 Services (IIS) 5.0, or support Web Extender Client (WEC) extensions, available as of Microsoft FrontPage 2000.
Using the folder property with the anchorClick behavior to navigate to a folder view is the same as invoking the navigate or navigateFrame method from the httpFolder behavior.
Microsoft Internet Explorer 5 displays the value of the FOLDER attribute 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 anchorClick behavior is available as of Internet Explorer 5, only in the Microsoft Win32 platform.
Example
This example uses the anchorClick behavior to navigate to a folder view.
<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
A
See Also