Here is the problem. I use the following in a script inside a jQuery download block:
window.scrollBy(0,-100);
I do this because I set the div to be fixed at the top of the page by scrolling, and this line will compensate so that the anchor you clicked on (http: //page.html#foo) is displayed where it should to be.
It works great on Firefox. In Chrome and Safari, this does not happen, because the download event appears before the browser scrolls to the anchor.
Any suggestions?
source
share