Catch a click on a file in iOSHTMLViewer

If I offer a web page with downloads to an iOS app, how can I make the downloaded file go into my own app’s documents folder?
Is there a trap for such a click so that I can act on it instead of changing web page?