exportLink.setAttribute('href', 'data:text/csv;base64,' + window.btoa(result));
I am trying to save data using a anchor tag in a offline mobile website.
My download attribute works fine (saves the file with the correct name i.e. with Date ) in chrome desktop but when run on android device in chrome It saved as csv;base64,NCwxMjMNCjhkjhkjhk=.bin
Can anyone suggest me any way where I can save it correctly ?
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)