marți, 29 martie 2016

HTML: Simple sample of how to add a search form/control only for a specific site



The code for the search control is below:

<form action="http://www.google.com/search" method="get" name="search">
    <label>Search my blog for:</label>
    <input name="q" />
    <input name="site" type="hidden" value="georgelache.blogspot.com" />
    <input name="sitesearch" type="hidden" value="georgelache.blogspot.com" />
    <input name="sitesearch2" type="hidden" value="georgelache.blogspot.com" />
    <input alt="Search" border="0" height="22" name="search-image" src="images/search.gif" type="image" width="22" />
</form>

Niciun comentariu:

Trimiteți un comentariu