Horje
HTML enterkeyhint Attribute

Definition and Usage

The enterkeyhint attribute allows you to change the appearance of the "Enter" key on a virtual keyboard.

Here is the result of the example above, on my phone:

The example below uses "go" as the enter-key:


How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with search Values

search - The enter key says "Search"
index.html
Example: HTML
 <input type="text" enterkeyhint="search"> 

Output should be:

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with search Values

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with go Values

go - The enter key says "Go"
index.html
Example: HTML
 <input type="text" enterkeyhint="go"> 

Output should be:

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with go Values

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with done Values

done - The enter key says "Done"
index.html
Example: HTML
<input type="text" enterkeyhint="done">

Output should be:

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with done Values

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with enter Values

enter - The enter key says "Enter"
index.html
Example: HTML
<input type="text" enterkeyhint="enter">

Output should be:

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with enter Values

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with next Values

next - The enter key says "Next"
index.html
Example: HTML
<input type="text" enterkeyhint="next">

Output should be:

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with next Values

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with previous Values

previous - The enter key says "Previous"
index.html
Example: HTML
<input type="text" enterkeyhint="previous">

Output should be:

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with previous Values

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with send Values

send - The enter key says "Send"
index.html
Example: HTML
<input type="text" enterkeyhint="send">

Output should be:

How to Specify a virtual keyboard's "Enter" button with the enterkeyhint attribute with send Values




html enterkeyhint attribute

Type:
Develop
Category:
Web Tutorial
Sub Category:
HTML Global Attributes
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference