Managing the iOS keyboard for HTML <input>
forms (used in UIWebView
) is well known, i.e. <input type="tel"></input>
for telephone numbers.
But I was wondering about the keyboard's blue 'Go' button. Sometimes the keyboard has a blue 'Go' button, sometimes the keyboard has a gray return button. Is there any opportunity to control this behavior programmatically?
Aha...
The 'Go' button is only shown, if the
<input>
tag is inside a<form>
tag. So, if you access your form elements afterwards with i.e. JavaScript, you can omit<form>
tags.'Go' button:
'return' button:
The important part is that the
form
tag has anaction
property. (action="#"
is a noop.)