I've developed a web app (nodewebkit) and I have a link "linked" to a pdf document:
<div id="container">
<a href="path/document.pdf"></a>
</div>
I've noticed that in some computers, when user click on link, browser propose to download the file. In others, instead, browser show pdf inside the page.
How can I get the same behavior on all browsers? I need the download option!
I suppose that I've to prevent default behaviour:
$('container').on('click', 'a', function(e) {
e.preventDefault();
...
});