Why doesn't this searchbox work?
<!--got this from http://www.getgooglesearch.com/-->
<fieldset id="searchbox">
<form method="get" action="http://www.google.com/search">
<input type="text" name="q" size="25" maxlength="255" value="" />
<input type="image" src="../media/google.gif" alt="Submit button" title="Submit" /><br />
<input type="checkbox" name="sitesearch" value="arenanewbs.com" checked="checked" />Only search Areneanewbs.com<br />
</form>
</fieldset>
If you uncheck the box the google site search works, but on my actual site it doesn't work. Can anyone help me?
我认为这个名称应该是网站而不是网站搜索
It " does not work ", because the search returns no results on the page you provided . The arenanewbs.com
domain you provided does not even exist.
See this jsfiddle for a proof, that the searches for different pages actually work (in my example this is bbc.co.uk and " wall street " phrase).
使value="http://www.google.com"
,它会工作。
上一篇: html5垂直间距问题与<img>
下一篇: 为什么这个搜索框不工作?