I am storing the public url of a pdf file in a field of a custom object. I am able to successfully retrieve the url.
how can I fire the url when a user click a button? Is it possible through JS controller?
Thanks in advance for your help.

yes. I tried doing it in href tag <a href="{!Module.URL__c}" target="_blank">DOWNLOAD </a> but this does not work. Module is the nale of the custom object and URL__C is the field name.
– medhavi Dec 6 at 15:10

Thanks for the reply Pranay. It is wrking when I am assigning a static url but how do I pass the url dynamically in this function? My url is stored in URL__c field of a custom object which I am retrieving in the APEX class. Thanks a lot in advance.
– medhavi Dec 6 at 15:22