Click here to Skip to main content
15,867,488 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
Hello,
How to download excel file using href.
I have a following code
HTML
<a   href="http://community.barclays.intranet/sites/satracker/_layouts/xlviewer.aspx?id=/sites/satracker/Client%20Check%20List%20Documents/Completed%20Execution%20Agreements.xlsx&Source=http%3A%2F%2Fcommunity%2Ebarclays%2Eintranet%2Fsites%2Fsatracker%2FClient%2520Check%2520List%2520Documents%2FForms%2FAllItems%2Easpx&DefaultItemOpen=1" target="_blank"><span>Execution Agreements</span></a>


BY clicking on it, it should download the excel provided in href path.

download attribute is not working on IE.

What I have tried:

Execution Agreements
Posted
Updated 19-Aug-16 9:11am
Comments
Mehdi Gholam 19-Aug-16 7:44am    
Is it working in other browsers?
Telstra 19-Aug-16 8:17am    
NOt checked

1 solution

Pls try this way:
<a href="http://community.barclays.intranet/sites/satracker/Client%20Check%20List%20Documents/Completed%20Execution%20Agreements.xlsx" target="_blank">Execution Agreements</a>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900