Last active
June 2, 2016 13:41
-
-
Save PardotGists/c7bb84a26d750b7ca3fd to your computer and use it in GitHub Desktop.
Enable Form Protected Content to Download Immediately.
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
<script type="text/javascript"> | |
var howLongToWait = 5; //number of seconds to wait | |
var urlOfDownloadContent = 'http://www.example.com/whitepaper.pdf'; | |
function triggerDownload() { | |
window.location = urlOfDownloadContent; | |
} | |
setTimeout('triggerDownload()', howLongToWait * 1000); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment