...unfortunately the immensely more complex solution.
Main Topics
Browse All TopicsIt needs to behave like a textarea but with absolutely no scrolling behaivors.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Maybe this is a good starting point (IE only here though - but certainly not too hard to take a look for FF compliancy), using a textarea, the style attribute overflow Jeff spoke about, and simply by preventing default action (adding the key char in the textarea):
<script>
function checklength(obj)
{
if (obj.value.length > parseInt(obj.cols)*parseIn
}
</script>
<textarea style="overflow:hidden" rows=5 cols=20 onkeydown="checklength(thi
Need some tuning, but should work this way ;)
Business Accounts
Answer for Membership
by: JeffHowdenPosted on 2006-04-10 at 10:50:59ID: 16419577
By "absolutely no scrolling behaviors" do you mean it shouldn't have a scrollbar? Or, do you mean that when enough text is entered to fill the available space in the textarea that no more is allowed to be added?
If it's the former, some simple styling can accomplish what you want:
<textarea style="overflow: auto"></textarea>
However, as soon as sufficient text is entered to fill the box, scrollbars will appear.
If you meant the latter, that'll require an immensely more complex solution.