title: How do I write a function to autodownload pdf files from a link without navigating to another webpage either in java script or html
body: <p>I am trying to implement the auto download feature in my web application where when clicked on a button a pdf file should download. I have the link but I am not able to download the file . I have used http get also and ionic file transfer plugin but neither of them are working. Can anyone help me write a code that does this task?</p>