Answers for "save things javascript"

1

save things javascript

let a = document.createElement('a');
a.href = "data:application/octet-stream,"+encodeURIComponent('"My DATA"');
a.download = 'myFile.json';
a.click(); // we not add 'a' to DOM so no need to remove
Posted by: Guest on January-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language