that occurs because that is the way anchors are supposed to work.
In my previous example, in some browsers if the anchor you are trying to move to is already on the screen somewhere, they may not scroll so it is at the top of the current view.
there are plenty of scripts out there that will force ti to do so, it just depends on your needs.