Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change "return key" in an iPhone WebApp textbox

I am creating an iPhone webapp with a textbox and would like to change the return key to "search". When you click on the textbox, the keyboard pops up and the return key on the bottom right of the keyboard displays "return" by default.

However if you go to google.com on your iPhone and click on the search textbox the return key on the bottom right displays "Go", while yahoo.com's search box displays "Search". I tried looking through google and yahoos source code but couldn't find any specific property they are using to do this.

This is a webapp and not a native app.

** Update - 9/12/2011 **

google.com's search textbox now displays "Search" for the return key instead of "Go"

like image 524
AlBeebe Avatar asked Dec 22 '22 09:12

AlBeebe


1 Answers

Figured it out..

you have to add title="Search" to the textbox AND the textbox must be within the FORM tags.

Example:

<FORM ...>
   <INPUT TYPE="text" TITLE="Search" ...>
</FORM>
like image 191
AlBeebe Avatar answered Dec 28 '22 10:12

AlBeebe