What do you want to save?
Add Code snippet
New code examples
-
Html 2022-01-22 04:50:04
how to do auto download when you click on a link
<a href="https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png" download>download file</a> var a = document.createElement('a'); a.href = "https://www.google.com/images/branding/googlelogo/2x/googlelo... Add solution -
Javascript 2021-11-17 15:27:18
save object as file dev tools
function saveDataAsFile(data, filename = "browser-scrapped.json") { if (!data) { console.error('Console.save: No data'); return; } if (typeof data === "object") { data = JSON.stringify(data, undefined, 4); } var blob = ne... Add solution -
Javascript 2021-10-07 23:56:04
download audio file javascript
var filename = url.substring(url.lastIndexOf("/") + 1).split("?")[0]; var xhr = new XMLHttpRequest(); xhr.responseType = 'blob'; xhr.onload = function() { var a = document.createElement('a'); a.href = window.URL.createObj... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5