Similar to: How can I export tables to excel from a webpage.
There is just one little problem. The .xls file is being saved with a random name. But I need to set my own name to the Excel file. Is there any way of doing it?
This is the JavaScript I am using:
window.open('data:application/vnd.ms-excel,'+document.documentElement.innerHTML);