Code for adding keywords in the google search box

Source: Internet
Author: User

It allows you to recommend keywords to your users. Note:
Changing the search box Code violates the Google policy. However, this code is independent of the search code, although it does affect the input of the search box.
As follows: replace ABC, DEF, and GHI in the following code with the desired search keywords. When users click these keywords, they will automatically
Appears in the search box.
Copy codeThe Code is as follows:
// Change forms [0] to forms [n] as needed.
<SCRIPT language = "JavaScript">
Function setvar (val ){
Document. forms [0]. q. value = val;
}
</SCRIPT>
<P> Suggested Searches
<BR> Click a highlighted word below, then press the Search button.
<P>
<A href = "javascript: setvar ('abc');"> ABC </A>
<A href = "javascript: setvar ('def ');"> DEF </A>
<A href = "javascript: setvar ('ghi');"> GHI </A>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.