For every web browser, pressing the Tab
key cycles through selecting the various input elements / links etc. on the page. I want to make it so that when a user presses Tab
in a<textarea>
, it creates a "tab" character like in a text document. How can that be done?
Asked
Active
Viewed 143 times
0

GMchris
- 5,439
- 4
- 22
- 40

Peder Johnson
- 47
- 5
-
As explained by **@Dano** this can be done. However, it is almost always a bad idea to surprise the user by changing default behaviours. Think long and hard about whether you **should** be doing this before you work out **how** to do it. You will provide a User eXperience that drives away people who expect your site to follow web conventions and use default behaviours. – jwpfox Oct 17 '16 at 08:17