(excelFile); var a = document.createElement("a"); a.download = $("#P_PlatformName option:selected").val() + timest() + ".xlsx"; a.href = link; a.click(); } function base64(content) { return window.btoa(unescape(encodeURIComponent(content))); } function timest() { var tmp ...