I was needed some functionality ,
where i can scroll the content to top of the page.
I am having many divs which are hidden , and its headings only shown.
I want that on click of that heading , div should open up and should scroll to top.
So here is the function which can help you.