Enables the browser to navigate to a folder view.
dhtml语法
XML |
<Prefix:
CustomTag ID=sID STYLE="behavior:url('#default#anchorclick')" />
|
---|
HTML |
<A STYLE="behavior:url('#default#AnchorClick')" ID=sID> |
---|
Scripting | object.style.behavior = "url('#default#anchorclick')" |
---|
object.addbehavior ("#default#anchorclick") |
dhtml可能的值
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. Click a tab on the left to choose the type of member you want to view.
Attributes/Properties
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 microsoft® 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 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 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.
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.
DHTML代码范例
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
更多语法参考
About Web Folder Behaviors