0
我曾联系被称为“点击下载”的网页和HTML表单上是下载从链接Excel文件在python
<span id="spnDwnRec">
<a class="spnRecordText" onclick="CallExcelFunction()" href="#"> Click here to download all records.</a>
</span>
,当我在“单击此处下载”一个Excel点击文件被下载,其实我需要找到链接的网址来下载excel文件。
,我不得不用下面
function CallExcelFunction() {
var hidInd = document.getElementById('hidInd');
var hidFromDate = document.getElementById('hidFromDate');
var hidToDate = document.getElementById('hidToDate');
var hidDMY = document.getElementById('hidDMY');
window.open('indices_main_excel.aspx?ind=' + hidInd.value + '&fromDate=' + hidFromDate.value + '&toDate=' + hidToDate.value + '&DMY=' + hidDMY.value, '_blank',
'toolbar=yes,location=no, directories=no, status=no, menubar=yes,scrollbars=yes, resizable=yes ,copyhistory=no, width=800, height=600');
}
任何人都可以请清除此数据的代码JavaScript函数,在此先感谢
-1“请给我的代码” - 没有足够的上下文来给他们太多。 – Kimvais 2012-04-24 09:27:06
感谢您的回复,我上面给出了我的代码 – 2012-04-24 10:36:26