I had link called "Click here to download" on an a page and its HTML form is
<span id="spnDwnRec">
<a class="spnRecordText" onclick="CallExcelFunction()" href="#"> Click here to download all records.</a>
</span>
When i clicked on "Click here to download" an excel file is downloaded, Actually i need to find the url of the link to download excel file.
And i had the javascript function with the code below
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');
}
can anyone please clear this data, thanks in advance