views:

680

answers:

1

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.

+3  A: 

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>
AlBeebe