Javascript reload the page with hash value
<p>I am trying to refresh the page with this statement in external javascript file after some processes.</p>

<pre><code>window.location.href = window.location.href
</code></pre>

<p>It perfectly reload the page but I want to scroll to the specific location after reload.
So, I put this on the page.</p>

<pre><code>&lt;a name="uploadImgSection"&gt;&lt;/a&gt;
</code></pre>

<p>And change the javascript to</p>

<pre><code>window.location.href = window.location.href + "#mypara";
</code></pre>

<p>This code doesn't reload/refresh the page either</p>

<pre><code>window.location.hash = "#uploadImgSection";
window.location.href = window.location.href;
</code></pre>

<p>When I do that, it doesn't reload the page at all. Is there any way I can reload the page with scroll bar position?</p>
