Home | Top | Web development | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.


nameProp Property

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

Syntax

HTML Scripting
N/A
[ sFileName = ] object . nameProp

Possible Values

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.

Example

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="/"> </A>

Standards Information

There is no public standard that applies to this property.

Applies To

[ Object Name ] Platform Version
Win16:
Win32:
Unix:
Mac:
Windows CE:
 
A , IMG
Home | Top | Web development | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.