By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,982 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

change focus when textarea overflows

P: 35

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....when they type enough text to cause the textarea to overflow/require scrolling(vertically) i would like the focus to shift to the 2nd textarea automatically.

I tried using element.scrollHeight 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.
Apr 27 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.