Is it possible to change the width of a text field as the user types?

For example, i have a 120 px text field, but if the user types too much, the text field will expand so the entire text can be seen?