I\'m trying to make it so a user can drag an icon from the web browser to their desktop, and a text file is created. I\'ve got the content part down, but I can\'t figure out how
You can write
event.dataTransfer.setData = ('text', 'tmp.txt');