Javascript method scrollintoview()

Hi,

Sometime back I was working on a web application during my training in which I had to put a functionality on a certain page of the web app where when a  button was clicked the page should automatically scroll/navigate to a certain place on the same page.

So, after searching a lot for Javascript function, I came across “scrollintoview()” method. This method can be used to perform this sort of a functionality.

So, please find the link of the Mozilla Developer Network (MDN) which explains this method in detail with example and helped me also in solving the problem.

https://developer.mozilla.org/en/DOM/element.scrollIntoView

Enjoy Learning 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s