This topic has not yet been rated - Rate this topic

nameProp property

[This documentation is preliminary and is subject to change.]

Retrieves the file name specified in the href or src property of the object.

Syntax

JavaScript

p = object.nameProp

Property values

Type: String

the name of a file specified by the object, not including the path or protocol.

Examples

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="http://msdn.microsoft.com/workshop/author/dhtml/dhtmlrefs.asp">
</A>

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ