Towards a better HTML textarea
February 12, 2010,
With webapplications becoming ever more important, you would think that the one control we have for entering larger amounts of text would be one of the points of attention. Unfortunately, the humble textarea has remained just that for years, humble.
One of the core elements used in webapplications is the textarea. It is in fact the only element that allows input of text that spans more than just a single line, discarding for the moment the posibility of using the contentEditable property on elements like divs. Textareas are used in applications like forums, guestbooks, wikis, and for numerous other purposes. Given its importance, it is a bit strange that its usability hasn't received much attention over the years. There are some features that could greatly improve the usability and usefulness. What I would like to see implemented are the two following features:
User configurable caret (text cursor) properties
One of the most annoying aspects of using textareas is that the cursor or caret is a very thin line, that often has a very low blink rate. Occasionaly, when I can't find the caret, I resort to actually typing a character, just to find the insert point. What would be really useful is if it where possible to modify the cursor weight, for example by making the line a little thicker. This should be a user preference, and not modifiable through the CSS of a website. And while I'm at it, a way of controlling the blink rate would also help to make the caret a lot easier to find.
To be honest, I don't have a good idea on the feasibility of these features, but it appears to me that these features could be implemented in such a way that they would not affect current applications and user preferences. They would go a long way towards making webapplications easier to work with.
Update (Feb 13, 2010)
After some more searching, I stumbled over an article explaining how to make the caret more visible in Firefox. Setting ui.caretWidth works for Firefox 3.5.7 on Windows XP, but not on the same version of Firefox for Ubuntu 9.10 (Karmic Koala).