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

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -