Retrieves the file name specified in the href or src property of the object.
dhtml语法
html | n/a |
---|
scripting | [ sfilename = ] object.nameprop |
---|
dhtml可能的值
sFileName | String that
receives the name of a file specified by the object, not including the path or protocol. |
The property is read-only.
The property has no default value.
DHTML代码范例
This example uses the nameProp property to set the innertext property of a link to the file name specified by an a element.
<SCRIPT>
window.onload=fnInit;
function fnInit(){
oLink.innerText=oLink.nameProp;
}
</SCRIPT>
<A ID="oLink"
href="/hbcms/php/r.php?url=http%3a%2f%2fmsdn.microsoft.com/workshop/author/dhtml/dhtmlrefs.html">
</A>
是否符合公共标准
There is no public standard that applies to this property.
Applies To