HTML enterkeyhint Attribute

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">
The result displayed on the phone for the enterkeyhint attribute

Try it yourself

Example 2

The following example uses "go" as the enter key:

<input type="text" enterkeyhint="go">
The result displayed on the phone for the enterkeyhint attribute

Try it yourself

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