Form JavaScript Tutorial

The type property returns the type of the text box. This always returns text.