How to open a pdf file new browser window in javascript
<p>I need to open a pdf file in new browser tab. How to do this.
I was using </p>

<pre><code>var docLocation = '../downloads/doc.pdf';
window.open(docLocation,"resizeable,scrollbar"); 
</code></pre>

<p>But it opens a download dialog box of the browser. How to achieve this ?</p>
