HTML enterkeyhint Attribute
- Previous Page dropzone
- Next Page hidden
- Go to the Previous Level HTML Global Attributes
Definition and Usage
enterkeyhint
The attribute allows you to change the appearance of the "Enter" (input key) on the virtual keyboard.
See also:
HTML Tutorial:HTML attributes
Instance
Tip:Please run the instance on a smartphone or tablet to see the results.
Example 1
Use the enterkeyhint attribute to specify the appearance of the "Enter" button on the virtual keyboard.
<input type="text" enterkeyhint="search">

Example 2
The following example uses "go" as the enter key:
<input type="text" enterkeyhint="go">

Grammar
<element enterkeyhint="done|enter|go|next|previous|search|send">
Attribute Value
Value | Description |
---|---|
done | The 'enter' key displays as 'Done'. |
enter | The 'enter' key displays as 'Enter'. |
go | The 'enter' key displays as 'Go'. |
next | The 'enter' key displays as 'Next'. |
previous | The 'enter' key displays as 'Previous'. |
search | The 'enter' key displays as 'Search'. |
send | The 'enter' key displays as 'Send'. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
77 | 79 | 94 | 13.1 | 64 |
- Previous Page dropzone
- Next Page hidden
- Go to the Previous Level HTML Global Attributes