SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In sharepoint 2010,

can we just add a text box and a button to the master page, and when the button gets a click it queries the regular sharepoint search page and pass the barameters?

if yes what parameters should we pass? and how?

thanks SPs ;)

share|improve this question
up vote 1 down vote accepted

Yes you can do that. Just right click the page and view the source specific to the SharePoint search box. Now you need to note down the names of the JS functions used in there.

Further add you own input box and incorporate the same JS functions on the same events as used by the OOB SharePoint serach box. You can also add your own functions like adding ghost text etc..

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.