Id like to make browser to scroll page to given anchor, just by using javascript.
I have specified name or id attribute in my html code:
<a name="anchorName">..</a>
or
<h1 id="anchorName2">..</h1>
I'd like get same effect as you get by navigating to http://server.com/path#anchorName. The page should be scrolled so that the anchor is near top of visible part of page.