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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -