diff --git a/idcproject/WebContent/jsp/deposit/IdcDepositListExcel.jsp b/idcproject/WebContent/jsp/deposit/IdcDepositListExcel.jsp index c6adf65..139b219 100644 --- a/idcproject/WebContent/jsp/deposit/IdcDepositListExcel.jsp +++ b/idcproject/WebContent/jsp/deposit/IdcDepositListExcel.jsp @@ -11,7 +11,10 @@ var tableToExcel = (function(){ return function(table, name) { if (!table.nodeType) table = document.getElementById(table) var ctx = {worksheet: name || 'Worksheet', table: table.innerHTML} - window.location.href = uri + base64(format(template, ctx)) + //window.location.href = uri + base64(format(template, ctx)) + document.getElementById("dlink").href = uri + base64(format(template, ctx)); + document.getElementById("dlink").download = filename; + document.getElementById("dlink").click(); } })();