javascript - more efficient and expandable google search -
I have a large list of websites with checkboxes, which I want to use to narrow down a Google search. Now my script is limited to about 5 sites, which I think is that there is some length limit on Firefox or Google, and my script looks like this
function_google () { Var cbs = document.getElementsByTagName ('Input'); Var txt = document.search.query.value; Var site = ""; For (var i = 0; i & lt; cbs.length; i ++) {if (cbs [i]. Type == 'checkbox' & amp; amp; amp; amp; amp; ; Amp; amp; amp; amp; amp; cbs; i.checked & amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; cbs [i] .value! = "Yes") {sites = sites + "Site:" + cbs [i] .value + "OR"; }} Sites = sites.substring (0, sites.length - 4); Window.open ("http://www.google.com/search?q=" + "" + + txt + sites); } I noticed custom Google search but it seems that you specify all the sites ahead of time and then custom Google search is required monthly fee on the fly. So does anyone have a fashionable way to search a large list of specific sites?
The maximum length in the URL may be those. You are going to that limit.
Comments
Post a Comment