Cancel file download - listener?

Possible Duplicate:
Cancel File Dialog Event in JavaScript

Is there a listener when the user clicks on cancel instead of doing this in the file download dialog?

+5
source share
4 answers

As others have noted, the download download tag cannot do this.

I had a good experience using this third-party JS loader . It does not use Flash, so it is suitable for mobile devices.

You can install:

onCancel: function(id, fileName){}

In the initial installation call. See the instructions on the Github page for more details.

-1
source

, , "", input = "file" html.

-, Flash, Gmail.

0

, , (, ), change.

:

HTML:

<input id=f type=file>

JavaScript:

function picked(){
    alert("Picked");                
}


$('#f').focus(function(evt){
    $(this).change(picked);   
});

jsFiddle

0

, . . . , HTML , . , :

, . INPUT .

, . , /, .

HTML5 , .

-3
source

All Articles