Javascript force download external pdf

Pdf can be downloaded in two ways in asp.net they are: