-1

I have a button that on clicking calls a webservice and displays a list of record below that button. I'm trying to scroll down to the bottom most part of the visualforce page, everytime the button is clicked. Any reference would be helpful. Thanks

1 Answer 1

5

Quick javascript function to do this:

window.scrollTo(0,document.body.scrollHeight);

where the parameters are the coordinates for x and y, respectively.

Documentation of the function: Window.scrollTo()

Not the answer you're looking for? Browse other questions tagged or ask your own question.