I want to add a search to a static site. The easiest way is to simply query Google by adding โsite: www.acme.comโ to the actual query so that Google limits your search on this site.
Ideally, I would like to do this in a browser to avoid having to install PHP on the server. Using the form, I do not know how to add search elements:
<form action=http://www.google.com?q="site:www.acme.com+..."> <input type=text id=search_item> </form>
Does anyone know of a client solution? Should I use JavaScript for this?
Thanks.
Edit: when using "method = get" and "input name = q value =" site: www.acme.com "the browser will really call Google using" www.google.com?q= "site: www.acme.com which is an element ", but I would prefer to avoid pre-setting the input field with" site: www.acme.com "because users will find it strange and can delete it.
Gulbahar
source share