Input FileUpload form Attribute
Definition and Usage
form
The property returns a reference to the form containing the file upload button.
This property returns the form object on success.
Note:This property is read-only.
Example
Get the id of the form containing the <input type="file"> element:
var x = document.getElementById("myFile").form.id;
Syntax
fileuploadObject.form
Technical Details
Return Value: |
Reference to the form element containing the file upload button. If the file upload button is not in the form, it returns |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | Support | Support | Support |