HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
FileError
An object containing error information from a file read
Properties
code
Text specifying what kind of error occurred
FileReader
An object to asynchronously read the contents of any file or blob; created
using the constructor
new FileReader()
Properties
error
A reference to a FileError object, if an error occurs during the read
readyState
The current state of the file reader
result
The file or blob as a string or ArrayBuffer object, if the read is successful
Methods
abort()
Aborts the file read
readAsArrayBuffer( blob )
Reads the bytes of blob into an ArrayBuffer object
readAsDataURL( blob )
Reads the bytes of blob into a data URL
FileReaderSync
An object to synchronously read the contents of any file or blob; created using
the constructor
new FileReaderSync()
Methods
readAsArrayBuffer( blob )
Reads the bytes of blob into an ArrayBuffer object
readAsBinaryString( blob )
Reads the bytes of blob , encoding them as a binary string
readAsDataURL( blob )
Reads the bytes of blob into a data URL
readAsText( blob [, encoding ] )
Reads the bytes of blob into text using the character encoding encoding
FileUploadÆ’
A file upload element in a Web form
Properties
disabled
A Boolean signifying if the element is disabled
form
The form object containing the FileUpload box
name
The name of the FileUpload box
size
The width in pixels
type
The type attribute of the FileUpload box
value
The pathname of the selected file in the FileUpload box
Methods
blur()
Removes the focus from the FileUpload box
focus()
Gives the focus to the FileUpload box
handleEvent( event )
Invokes the event handler for the specified event
select()
Selects the input area of the FileUpload box
Form
A Web form
Properties
acceptCharset
A list of character encodings for input data to be accepted by the server processing
the form
action
The location of the CGI script that receives the form values
autocomplete
A Boolean specifying whether form autocompletion is on or off
elements
An array of elements within the form
encoding
The type of encoding used in the form
enctype
The MIME type of submitted data
Search WWH ::




Custom Search