0

Hi, I am exporting my data to Excel using jQuery like this:

 window.open('data:application/vnd.ms-excel,' + encodeURIComponent($('div[id$=dvData]').html()));

Is there any way to change the file name? Please Help.

khanharis
  • 1
  • 1
  • Check my [answer](http://stackoverflow.com/questions/34227131/is-there-any-way-to-set-safe-content-on-a-excel-file-generated-from-js/35473625#35473625) for help. –  Feb 23 '16 at 07:07
  • Possible duplicate with: http://stackoverflow.com/questions/15354261/how-to-change-the-name-of-file-while-exporting-data-to-excel – ADreNaLiNe-DJ Feb 23 '16 at 07:10
  • Yes , I got one solution but thats not workinh in Mozilla. Here is the link : http://www.kubilayerdogan.net/tag/javascript/ – khanharis Feb 23 '16 at 07:24

0 Answers0