Page 1 of 1

How would you do this ?

Posted: Tue Aug 18, 2009 2:08 pm
by gogelpot
Hi

I have a webpage with a ifram called "main". When I click a link on the webpage a page is loaded into the "main" ifram. This page called "search" is a page where the viewer will enter info needed for a search in a DB. The result is then displayed in a new iframe on the search page .

The problem is that the link that is clicked on to open the search page is down the bottom of the page and when clicked it opens the search page but the viewer cant see the changes exept if they scrole to the top of the webpage.

Is there a way to automatically scrole the webpage to the top after opening the search page.

Re: How would you do this ?

Posted: Tue Aug 18, 2009 2:17 pm
by jackpf

Code: Select all

window.scrollBy(0, 0);
should do it.