Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

Why a web Page associated with a JS moves to the top when JS is activated ?

Pankaj Yadav_1
Frequent Advisor

Why a web Page associated with a JS moves to the top when JS is activated ?

I have a unique question .

Suppose we attach a Javascript to a link.
When we click the link a JS function is called and the body of the web page moves to the top if we had scrolled down the page.

I want to stop the web page from going to the top.

How to do this ?
2 REPLIES
Pankaj Yadav_1
Frequent Advisor

Re: Why a web Page associated with a JS moves to the top when JS is activated ?

The results are displayed at the bottom.

So I want the page to go at the bottom after we click the link .

How to do this ?
Pankaj Yadav_1
Frequent Advisor

Re: Why a web Page associated with a JS moves to the top when JS is activated ?

I got the solution using anchors -->

Go to Bottom