File input javascript event, is there an event fire when someone click okay on the dialog box?

Posted by Mickey Cheong on Stack Overflow See other posts from Stack Overflow or by Mickey Cheong
Published on 2010-04-18T18:40:22Z Indexed on 2010/04/18 18:43 UTC
Read the original article Hit count: 307

Filed under:

Hi,

When someone click on Browse for the input file below:

<input type="file" name="blah" />

A dialog box will appear. The user will then select a file and click 'Ok'. The dialog box will close. Is there an event fire because of that? I tried onfocus and onblur, it didnt work out.

The only way is, i start a timer to check the value content when it is onfocus. Not that elegant. Any solution?

Cheers, Mickey

© Stack Overflow or respective owner

Related posts about javascript-execution