javascript - detect upload window close jquery -


how fire event windows file uploading closed in of case - file selected, different file selected(from selected 1 ), window closed.

this works in case if select file , different selected one.

$(document).ready(function() {         $('#file').change(function(){               alert("test");         });      }); 

<input type="file" id="file" />

thanks

you need handle window's onunload or onbeforeunload events


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -