Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Auto Expand of textarea


Message #1 by "Boloian, John" <jboloian@u...> on Fri, 3 May 2002 17:03:55 -0400
Sorry about that, jumped too quickly... I forgot IE 5+ has the onScroll
event, that coupled with the textarea.rows property led me to the answer...

-----Original Message-----
From: Boloian, John 
Sent: Friday, May 03, 2002 5:04 PM
To: javascript
Subject: [javascript] Auto Expand of textarea


Is there a way in Javascript (for IE 5+) to automatically expand a textarea
if a user types more than what is visible in the textarea?

For instance, if a textarea is 3 rows, and a user types info which brings it
to 4 rows, is there a way of automatically expanding the textarea to 4 rows?


Thanks for any input!

John Boloian

  Return to Index