Hidden web standards behind Google "custom searchEngines"?

Posted by Hoàng Long on Programmers See other posts from Programmers or by Hoàng Long
Published on 2012-03-23T03:21:01Z Indexed on 2012/03/23 5:38 UTC
Read the original article Hit count: 379

Filed under:
|

Today while playing with Google Chrome Omnibox, I notice a strange behavior. I guess there's some "hidden" web standard behind it, but can't figure it out. Here's how to reproduce:

  1. Go to http://edition.cnn.com/
  2. Use the search function at the higher right corner, Search a random keyword, for example: "abc"
  3. Close the tabs.
  4. Open a new tab, type until Chrome reminds you about http://edition.cnn.com/, then press "Tab"
  5. The Omnibox now shows "Search CNN.com"! And when you type "abc" and press Enter, it uses the CNN search function to do the job, not Google!

I also tried it for several different sites. To some it won't work. But to some sites, like CNN, vnexpress.net, it works after I use the search function of that site once.

I also learnt about chrome://settings/searchEngines (type it in your chrome box and you will see), and learnt about you can add custom search engine in chrome. But the question is, why Chrome can realize the search URL automatically to some pages, and not others?

It's not because some site subscribe to Google service, because I can do the same method for my site (http://ledohoanglong.wordpress.com), and I'm sure that there's no subscription. So I guess there's a method to "expose" the search function of a site, so that Google Chrome can catch it (after I call the search function of that site once, of courses).

Does anyone know about how it works behind the scene?

© Programmers or respective owner

Related posts about websites

Related posts about standards