shaggy_the_sheep
asked on
Set Scroll Position to Bottom Of Element
Hi
I have a <span> element with height, width and overflow attributes set. As i press a button javascript adds to the text written inside, eventually overflowing the element and causing scroll bars to appear. Is there a way to automatically locate the user at the bottom of the element, meaning they don't need to scroll down themselves.
Thanks
Richard
I have a <span> element with height, width and overflow attributes set. As i press a button javascript adds to the text written inside, eventually overflowing the element and causing scroll bars to appear. Is there a way to automatically locate the user at the bottom of the element, meaning they don't need to scroll down themselves.
Thanks
Richard
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.