This problem must be so common, but I cannot find a reference to it anywhere. Two windows ( A and B ) are opened by a javascript link. Window A has a long list of links so you may need to scroll all the way down to see what you need. All of the links in this window open content in window B. Window B content is on another domain, so frames and iframes are out. The problem is that every time you click a link in window A, the the scrollbar pops up to the top position, (Brings you back to the top of the page). This is bad because people want to click on a series of links, (no thats not it, let me try the next one.) But the next one has to be found again because its way down below the fold. Its irritating me, so obviously users would be driven away. Can any one help me with this.
I guess you are using an onclick function to open the site in window B (like: <a href="#" onclick="....">). You can add "return false;" at the end of the onclick attribute (like <a href="#" onclick="... ; return false;") and it shouldn't scroll to the top anymore
Thanks for the quick response. Good guess, but am not able to implement. Maybe I have the wrong syntax. Here is my link as it is before your suggestion: <a href="#" onclick="window.open('http://www.somesite.com/directory/file.htm','cust',)" What should it look like please?
<a href="#" onclick="window.open('http://www.somesite.com/directory/file.htm','cust',); return false;"