FileUpload.onChange

JavaScript 1.1+ Nav3+, Opera3+ Syntax

onChange="command"

Description

The onChange event handler of the FileUpload object is an event handler that notifies you when the upload box information has been changed.

Example

Listing 7.248 uses the onChange event handler to check for a user entering information into an upload box. When the filename entered has been changed, the onChange event handler is triggered and a message is displayed in the text box.

Listing 7.248 Example of onChange Event Handler
 <html> <head> <title>Using the onChange event handler</title> </head> <body> <script language="JavaScript"> <!-- Hide // function that informs the user that the filename in the FileUpload box // has been changed. function ...

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.