.attr("id", "download")
.style("top", event.clientY+20+"px")
.style("left", event.clientX+"px")
.html("Right-click on this preview and choose Save as<br />Left-Click to dismiss<br />")
.append("img")
.attr("src", "data:image/svg+xml;base64,"+ btoa(html));with "html" being the copy of the "svg" code i had copied before but it isn't working though.Any idea why it isn't working ? Thanks