Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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
Comment

PREVIOUS NEXT
Code Example
Javascript :: 11.10*15.1667 
Javascript :: equation+ automate + expression reguliere 
Javascript :: Inject Javascript Function not working in Android React Native WebView but work fine in iOS React Native 
Javascript :: add 2 microseconds to Date() js 
Javascript :: how to push the get variables without page reloading in Jquery 
Javascript :: codewars js Spinning Rings 
Javascript :: how to disable all buttons in javascript 
Javascript :: stun server 
Javascript :: regex to remove spaces 
Javascript :: remove tr having delete icon inside jquery 
Javascript :: jquery move element 
Javascript :: get text of selected option in select2 jquery 
Javascript :: javascript set date to timezone 
Javascript :: jest test coverage command 
Javascript :: onclick focus out jquery 
Javascript :: get how much i scroll in jquery 
Javascript :: event on input or keydown or on paste value or on change jquery 
Javascript :: get current url javascript 
Javascript :: node.js mysql create table 
Javascript :: store object in local storage javascript 
Javascript :: rotate a div using javascript 
Javascript :: js 1d index to 2d coord 
Javascript :: console.log red text on yellow background 
Javascript :: db.json 
Javascript :: find word in javascript string 
Javascript :: Error: Expected "payload" to be a plain object. at validate 
Javascript :: empty the value of an input in jquery 
Javascript :: javascript body element 
Javascript :: scroll to bottom javascript 
Javascript :: Iterate Odd Numbers With a For Loop 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =