Is there a javascript way to default search scope for various sub sites.
For example, I have a site collection (Marketing) Under Marketing I have 5 sub-sites
Meeting
Sale
Region
News
Contact
I have created 5 scopes each targeting it's respected sub-site. Now you can only default to one search scope and it's per site collection level.
Is there a javascript code which can sit in the masterpage (head section) to will look at the sub site and default the search scope dropdown to the value pertaining to that subsite?
meaning if user goes to meeting sub site then default the search scope dropdown to Search Meeting scope and so forth
s
parameter to the url when loading the page likes=Meeting
search scope dropdown takes the value from that parameter on page load – Gintas K Oct 15 '13 at 17:05