suppose we have a pdf link \"http://manuals.info.apple.com/en/iphone_user_guide.pdf\"(just for example and to let u know that file is not on my server, i only have the link)
In javascript use the preventDefault() method of the event args parameter.
<a href="no-script.html">Download now!</a> $('a').click(function(e) { e.preventDefault(); // stop the browser from following window.location.href = 'downloads/file.pdf'; });