Created
November 5, 2014 19:41
-
-
Save jaxxreal/8003b18eaa3bbac8f19a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var downloadURL = function (url) { | |
var hiddenIFrameID = 'hiddenDownloader', | |
iframe = document.getElementById(hiddenIFrameID); | |
if (iframe === null) { | |
iframe = document.createElement('iframe'); | |
iframe.id = hiddenIFrameID; | |
iframe.style.display = 'none'; | |
document.body.appendChild(iframe); | |
} | |
iframe.src = url; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment