What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-12 02:38:03
how to create dynamic onclick event in javascript
/* This example assumes you have two elements with an id attribute of 'cats' and 'dogs'. */ const conditionOneHandler = event => { alert('I like cats!'); } const conditionTwoHandler = event => { alert('I like dogs!'); } const clickHand... Add solution -
Javascript 2021-09-03 22:16:01
how to edit a fil with vanilla js
(function () { var textFile = null; function makeTextFile(text) { var data = new Blob([text], {type: 'text/plain'}); // If we are replacing a previously generated file we need to // manually revoke the object URL to avoid memory leaks. ... Add solution