Apollo
Apollo

Reputation: 9054

Doing a google search before UIWebView is shown

Is it possible to present www.Google.com in a webview with some text already searched? For example, can I search for Mcdonalds and have this webpage come up https://www.google.com/#hl=en&gs_nf=1&tok=MgDrtaqTQMlSjz6LTciLag&cp=3&gs_id=d&xhr=t&q=mcdonalds&pf=p&output=search&sclient=psy-ab&oq=mcd&gs_l=&pbx=1&bav=on.2,or.r_gc.r_pw.r_cp.r_qf.,cf.osb&fp=5f86932334452070&biw=1271&bih=885

Instead of this one: google.com

The google search query url looks quite complicated so I'd like to find a way to do pre-loaded search without having to touch the URL...

Thanks in advance.

Upvotes: 0

Views: 944

Answers (2)

No Name
No Name

Reputation: 1543

You can use multiple search engine:

https://www.google.com/search?q=YOUR_SEARCH_STRING
https://www.bing.com/search?q=YOUR_SEARCH_STRING
https://www.search.yahoo.com/search?p=YOUR_SEARCH_STRING

Upvotes: 0

Novarg
Novarg

Reputation: 7440

You can simply use https://www.google.com/search?q=YOUR_SEARCH_STRING.

I think it's what you need

Upvotes: 10

Related Questions