Input Button type Attribute
Definition and Usage
type
The attribute returns what type of form element the file upload button is.
For the file upload button, this attribute will always return "file
".
Example
Determine the type of form element for the file upload button:
var x = document.getElementById("myFile").type;
Syntax
fileuploadObject.type
Technical Details
Return Value: | String Value, the form element type of the file upload button. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |