Your Ad Here

.

0 Search Bar Widget for Blogger

Buzz This

To put a search bar widget on your blog through which visitors of your blog could search on your blog as per their need, follow the steps below:
  • From Blogger Dashboard go to Template Layout>Add A Gadget>HTML/Javascript.
  • Put the following code on in the content area of the dialog box opened after the above step.
Code:
<form method="get" action="http://www.google.com/search">
<input type="text" name="q" size="26" maxlength="255" value="" /> <input type="submit" value="Go" />
<input value="yourblogname.blogspot.com" name="sitesearch" type="hidden" checked/>
</form>
  • Change the bold text in the code with your blog name.
  • Click on save and check your blog in your web browser, voilla...its done!
This is the result:





You can alter the width of the search bar by changing values in size (see in code; default size 26), and you can also put any value in the submit button instead of GO (see code).

0 Comments Count

Leave A Comment