FileUpload

JavaScript 1.0+, Jscript 3.0+ Nav2+, IE 4+, Opera3+ Syntax

Core client-side JavaScript object.

Description

The FileUpload object represents a file upload box within an HTML form. An upload box is created by using the HTML <input> tag and specifying the TYPE attribute as file. The FileUpload object has specific properties and methods associated with it, which are shown in Table 7.26.

Table 7.26. Properties and Methods of FileUpload object
Property/Method Description
blur() Removes focus from FileUpload box
focus() Sets focus on FileUpload box
formReference form object containing FileUpload box
handleEvent() Handles specific event
name HTML NAME attribute for FileUpload box
onBlur Event handler for Blur event
onChange ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.