1$('a#someID').attr({target: '_blank',
2 href : 'http://localhost/directory/file.pdf'});
1<iframe id="download_iframe" style="display:none;"></iframe>
2<script>
3 document.getElementById('download_iframe').src = "/example/example.txt";
4</script>
5
6