Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show 'Search' button in iPhone/iPad Safari keyboard

I've noticed navigating in websites like Dell or Google, that typing in their search text box with iPhone, in the keyboard appears a blue button 'Search' instead of the standard 'Go' button that appears on any normal form.

What should you do to display the search button?

like image 617
Javier Marín Avatar asked Feb 01 '11 15:02

Javier Marín


People also ask

Can you keyword search on iPhone Safari?

You can find a specific word or phrase on a page. , then tap Find on Page. Enter the word or phrase in the search field.

Is there a search function on iPad Safari?

Choose a search engineGo to Settings > Safari > Search Engine.

How do I use the Find button on Safari?

Navigate to the page that you want to search. Tap the Share icon (the square with an arrow pointing out) at the bottom of the screen. Scroll past the Share options to the Action menu and select Find on Page. Type the word or phrase you're looking for in the search field and tap Search.


1 Answers

having type="search" is usually all you need to make software Search keyboard appear however in iOS8 it is mandatory to have a wrapping form with action attribute.

So the following code would have a software keyboard with “Return” button

<form>     <input type="search" /> </form> 

But this code should have blue “Search” button instead

<form action=".">     <input type="search" /> </form> 
like image 187
Anton Bielousov Avatar answered Sep 24 '22 03:09

Anton Bielousov