Using the GOOLGE search engine in web pages XML, Web Services, JavaScript
Putting a search engine on your own web page will be very cool! Of course, you have to realize your true Internet page Search Engine for our most people! Dogs are the best search engines in the world, at least I So think. If you can "borrow" Google's search engine on your own web, it is also a good thing, but you must "borrow" enough!
This series intends to use Google Searches on the web by splicing from the easiest URL to XMLHTTP, to SOAP, using Google search on the web with pure JavaScript to introduce some of the Web. (I think, one year of XDJM experienced XDJM can hit this.)
Start the topic. If you carefully observe Google's behavior, you will find that Goolge actually puts the parameters in the URL. For example, search "TROY" in all sites (I look forward to a long time, huh, huh), then as long as Paste the following URL to the browser can be http://www.google.com/search?hl=zh-cn&ie=utf-8&q=troy&lr=lang_zh-cn looks, just put the Q = of the above URL Troy is replaced with other keywords, you can achieve the "stealing chain" of Google, how to search for the keywords to search for Chinese, then you can separately encode. There are some coding functions of JavaScript on the Internet, but can not be Write a program regardless of the principle of the program, let's take a look at what is a simple method. First, think of using the form get method to let IE to work for us: