FileUpload.handleEvent()

JavaScript 1.2+ Nav4+ Syntax

							fileupload.handleEvent(event)

Description

The handleEvent() method of the FileUpload object invokes the event handler for the specific event.

Example

Listing 7.245 shows how the handleEvent() method is used to handle all CHANGE events. When the user chooses or enters a filename in the FileUpload box and then changes the information, the CHANGE event occurs and is captured. The handleChange function processes the CHANGE event and passes it to the handleEvent() method of the upload box. So the event handler for the upload box will handle all CHANGE events.

Listing 7.245 Using handleEvent Method
 <html> <head> <title>Using the handleEvent method</title> </head> <body> <script language ...

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.