Close div, jump back to top
<p>I have a JS script that shows and hides a div when clicked. What I am trying to do is when the close link at the bottom is clicked it jumps back up to the open link. Can't figure it out and everything I searched wants to remove this from happening.</p>

<p>Open link:</p>

<pre><code>Click &lt;a href="javascript:ShowContent('require')"&gt;Here&lt;/a&gt;
</code></pre>

<p>Close link:</p>

<pre><code>Click &lt;a href="javascript:HideContent('require')"&gt;Here&lt;/a&gt; to Close.
</code></pre>

<p>JS code I am using:</p>

<pre><code>function HideContent(d) {
    document.getElementById(d).style.display = "none";
}

function ShowContent(d) {
    document.getElementById(d).style.display = "block";
}
</code></pre>

<p>I am sure it's something easy to fix but as per previous questions any attempts to understand JS have ended in bitter resentment.</p>
