I want to pop up alert when the user browse file into input
for example i have this input
<input type="file" name="myfiles" />
now , when the user finish to browse an file i want a function to start working ,
what i mean by finish browse file is when the user select file and than click on the file he selected twice and than when the browsing files windows close i want this function to start
how to do that?
There is no event for that, but what you could do is to start a setInterval event that polls the filename value. When the filename changes, you can cancel the setInterval event and trigger function that you want to start working.
can you give me example? and is there maybe an other way?