假设我开发了一个客户端 Web 应用程序(我无权访问服务器代码),是否可以检测用户何时下载文件?我需要类似的东西:
//fires when user download file
function downloadFileCreated(obj){
alert(obj.url); // prints the download link
}
在这里他们假设我可以访问服务器代码(但我没有)
(我正在开发 InternetExplorer 插件,我想注入脚本来监听用户下载)
假设我开发了一个客户端 Web 应用程序(我无权访问服务器代码),是否可以检测用户何时下载文件?我需要类似的东西:
//fires when user download file
function downloadFileCreated(obj){
alert(obj.url); // prints the download link
}
在这里他们假设我可以访问服务器代码(但我没有)
(我正在开发 InternetExplorer 插件,我想注入脚本来监听用户下载)