Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

download pdf in javascript

var link = document.createElement('a');
link.href = url;
link.download = 'file.pdf';
link.dispatchEvent(new MouseEvent('click'));
 
PREVIOUS NEXT
Tagged: #download #pdf #javascript
ADD COMMENT
Topic
Name
7+8 =