Created
October 7, 2013 15:36
-
-
Save PyramisDev/6869947 to your computer and use it in GitHub Desktop.
File downloader script, can be called on onclick events for any DOM element.
This file contains hidden or 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
<script type="text/javascript"> | |
function functionName() { | |
var url = "pathToFileToDownload.extention"; | |
window.open(url, 'Download');} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment