This example uses the startDownload method to begin downloading a file when the user clicks the link. In addition, the specified callback function, onDownloadDone, is notified when the download is complete.
<HTML XMLNS:MSIE >
<MSIE:DOWNLOAD ID="oDownload" STYLE="behavior:url(#default#download)" />
<SCRIPT>
function onDownloadDone(s) { alert (s); }
</SCRIPT>
<P>Click <A HREF="javascript:oDownload.startDownload('download.htm',
onDownloadDone)">here</A> to download this page.