JavaScript FileUpload Object
The JavaScript FileUpload Object is a property of the form object which allows users to provide a local file as part of their form input thereby allowing for indirect file upload. It can be implement using a form as follows:
<FORM>
<INPUT TYPE="file" NAME="elementName">
</FORM>
Here's how it looks:
Properties
These properties correlate to HTML FORM values.
- form - The form object that includes the file upload object.
- name - The name of the file upload element which is not the same as the file name.
- type - The type of element which is file.
- value - Can be used to specify the initial value of the file name to be uploaded.
Methods
- blur() - Takes the focus away from the form.
- focus() - Gives the focus to the form.
Events
|
|