We have previously covered a similar article on adding Google Images Search Box on your blog, and this time we are going to add a Twitter Search Box which seems to be quite better when you have got social media fans. In this case there are two options, ie either showing up a search form where in visitors can enter any keyword which would be searched via search.twitter.com and the results would be shown, or else showing a search button directly on the web page.
We are not going to use any tools or any widgets provided by Twitter, but the normal webmaster rules being applied here, on how to add a simple search form. Twitter has a dedicated sub-domain for their Search Queries and this is located at search.twitter.com, hence you need to create a simple search box which would take keyword queries and search the same at the search.twitter.com section. The code would be as followed.
<form method=”get” action=”http://search.twitter.com/search”>
Search Twitter.com : <input type=”text” name=”q” />
<input type=”submit” value=”Search” /></form>
That’s it, your job is done by creating a search box which would allow you to search through Twitter. The very same way you can replace the twitter search URL and add facebook or Linked URL and create their search box which can be added on your website.