How to Embed a Search Bar
- 1). Log in to your Web server or blog server, and navigate to the page in which you want to embed the search bar.
- 2). Click on the section of the page in which you want the search bar to appear.
- 3). Type the following text:
<form method="get" action="http://www.google.com/search">
<input type="text" name="q" size="31"
maxlength="255" value="" />
<input type="submit" value="Google Search" />
<input type="radio" name="sitesearch" value="" />
The Web
<input type="radio" name="sitesearch"
value="yourwebsite.com" checked /> Your Website<br />
</form> - 4). Replace "yourwebsite.com" and "Your Website" in the second-to-last line of the embed code with the actual URL and name of your website.
- 5). Click "Publish" on your blog or Web server. You now have embedded a search bar.