webkitdirectory property
Provides a means for selecting a folder when using input.
Syntax
| JavaScript |
|---|
object.webkitdirectory = p p = object.webkitdirectory |
Property values
Type: boolean
Remarks
For compatibility purposes, Microsoft Edge supports the webkitdirectory attribute.
The behavior of this attribute allows the file input to display the folder browser instead of the file browser. To use the webkitdirectory attribute, see the example below:
<input type="file" webkitdirectory>
See also
Show: