name property
The name of the file.
This property is read-only.
![]() |
Syntax
| JavaScript |
|---|
fileName = object.name |
Property values
Type: DOMString
The name of the file.
Remarks
This property returns the name of the file as a string. There are numerous file name variations on different systems; this property is merely the name of the file, without path information. If the file name cannot be obtained, name contains an empty string.
See also
Show:
