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-21 19:01:16
canvas todataurl returns undefined
//use callbacks instead of return, ex. function getImageDataURL(local_name, w, h, i, callback) { var data, canvas, ctx; var img = new Image(); img.src = "https://wallpapercave.com/wp/wp5042624.png"; img.onload = function (){ ... Add solution -
Javascript 2021-11-21 18:41:17
javscript insert element after another
//insert new Element after some reference Element function insertAfter(newElement, referenceElement) { referenceElement.parentNode.insertBefore(newElement, referenceElement.nextSibling); } //example usage var newElement = document.createElement... Add solution -
Javascript 2021-11-19 02:45:10
react-mapbox-gl custom marker
// add markers to map geojson.features.forEach(function(marker) { // create a HTML element for each feature var el = document.createElement('div'); el.className = 'marker'; // make a marker for each feature and add to the map new mapboxgl.Mark... Add solution -
Html 2021-11-19 01:43:08
how to make a to-do list in html
<!DOCTYPE html> <html> <head> <title>To-Do List App</title> <script> function addItem() { var newItem = document.createElement("div"); newItem.innerHTML = document.getElementById("box").va... Add solution
Best helpers
TheShade
+5
Auntkym
+5
Amalloy
+5
Mostafa 36a2
+5
RoToRa
+5
Rodrigorgs
+5
Matt2507864
+5
Nick Vaccaro
+5
Thepace
+5
Arnav Bose
+5
Waldrumpus
+5
Naigel
+5
Holyeyeolo
+5
A10ciod
+5
Catimann
+5
Rev1.0
+5
Babak
+5
Ohhh
+5
Jeff Sours
+5
Jim Mourgos
+5
J. Marks
+5
Piquet
+5