window.open makes page scroll up
<p>i'm using a windows.open popup and when i click it the page automatically goes up, how do i prevent this? i tried 'top:auto' it doesnt work here is my code</p>

<blockquote>
<pre><code> function openPopup() {

        var divText = document.getElementById("pass").outerHTML;
        var myWindow = window.open('', '', 'width=500,height=200,top=100');
        var doc = myWindow.document;
        doc.open();
        doc.write(divText);
        doc.close();
    }
</code></pre>
</blockquote>

<pre><code>           &lt;a href="#" onclick="openPopup()"&gt;Read More&lt;/a&gt;
</code></pre>
