views:

21

answers:

1

Hi,

I have a an asp.net label control on my page.

I have set the style to overflow: auto.

What i would like to know, is when there is a lot of text in my label and the vertical scroll bar is showing, is there away i can scroll to the end of the label using javascript?

I would like the user to always see the bottom section of the label.

Thanks

Ian

+1  A: 

Should work:

yourSpan.scrollTop = yourSpan.scrollHeight;
Tim Schmelter
Thank you! worked like a charm!!
SetiSeeker