0
webBrowser2.Document.InvokeScript("download_file");`.
这个JavaScript调用网页中的JavaScript打开对话框,询问用户保存或打开文件。我想直接将文件保存到路径而不显示与用户的对话。我怎样才能做到这一点。我正在删除网页。我正在从网页中提取所需的详细信息。
download_file():
function download_file() {
var summaryFlag = 0;
if (document.getElementById("frmincludefilesummary").checked) {
summaryFlag = 1;
}
url = '/filedatabase/file_process_request.html?mru=53616c7&type=doc';
url += '&sum=' + summaryFlag + '&logo=0&xcode=name&serve_txt=0&folderid=';
document.location = url;
}
你是否正面它的浏览器不触发提示? – 2012-07-30 05:29:40
我没有给你马特罗。上面的命令调用java脚本。 Java脚本如下。 'function download_file(){ var summaryFlag = 0; (document.getElementById(“frmincludefilesummary”)。checked){ \t summaryFlag = 1; } url ='/filedatabase/file_process_request.html?mru=53616c7&type=doc'; url + ='&sum ='+ summaryFlag +'&logo = 0&xcode = name&serve_txt = 0&folderid ='; document.location = url; }' – Maddy 2012-07-30 05:55:52