change focus when textarea overflows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ukfusion
    New Member
    • Sep 2007
    • 35

    change focus when textarea overflows

    Hi,

    I have 2 fixed width and height textareas. with transparency and scroll bars/border hidden.

    I am letting people type text into the 1st textarea....whe n they type enough text to cause the textarea to overflow/require scrolling(verti cally) i would like the focus to shift to the 2nd textarea automatically.

    I tried using element.scrollH eight but it only returns the height not including vertical scroll.

    I will be giving them the option to alter font size dynamically so it will need to use this method rather than character count or row count.

    Hope someone can help.
Working...