Suppose there is a page like http://www.example.com/blahblah/#fragment. With direct input to the address bar the browser loads the page and automatically jumps to #fragment
anchor.
Is there any way to prevent this behavior with JavaScript without intervention into HTML code? Maybe there is some event that fires just before the browser jumps to the anchor? The case in point is opening the page through direct input, not the jump after clicking a link.
Also I look for a way to prevent jumping at all, not to let the browser jump and then scroll back.