Prevent/stop auto anchor link from occurring
I need to prevent the automatic scroll-to behavior in the browser when using link.html#idX and &lt;div id="idX"/&gt;.

The problem I am trying to solve is where I'm trying to do a custom scroll-to functionality on page load by detecting the anchor in the url, but so far have not been able to prevent the automatic scrolling functionality (specifically in Firefox).

Any ideas? I have tried preventDefault() on the $(window).load() handler, which did not seem to work.
Prevent/stop auto anchor link from occurring
===

I need to prevent the automatic scroll-to behavior in the browser when using link.html#idX and &lt;div id="idX"/&gt;.

The problem I am trying to solve is where I'm trying to do a custom scroll-to functionality on page load by detecting the anchor in the url, but so far have not been able to prevent the automatic scrolling functionality (specifically in Firefox).

Any ideas? I have tried preventDefault() on the $(window).load() handler, which did not seem to work.