Hello,
I have seen this question asked quite a few times, but I am yet to find an answer. I suspect because it can't be done?....
If a web page has an anchor that the user can click to download a document, is there any way *on the client side* to know if they completed that download?
So if I have something like this:
then I was hoping that there might be some way of being told when the file was downloaded. window.onload below doesn't work, but hopefully it'll illustrate what I'm trying to do:Code:<a href="bigfile.zip" onclick="myOnClick(this);">Download Me</a>
Code:<script type="text/javascript"> function myOnClick(anchor) { window.onload = function(){alert(window.location);}; window.location = anchor.href; } </script>


Reply With Quote
Bookmarks