js download File object

87

javascript download file -

$('a#someID').attr({target: '_blank', 
                    href  : 'http://localhost/directory/file.pdf'});

Comments

Submit
0 Comments