nameProp property

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

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 type="text/javascript">
window.onload=fnInit;
function fnInit(){
   oLink.innerText=oLink.nameProp;
}
</script>
<a id="oLink"
   href="http://msdn.microsoft.com/workshop/author/dhtml/dhtmlrefs.asp">
</a>

See also

a
img

 

 

Send comments about this topic to Microsoft

Build date: 11/21/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

© 2013 Microsoft. All rights reserved.