我已使用以下方法将文本框搜索转换为 Google 搜索:
location.href = "http://images.google.com/search?q=" + val;
但是,我想要网页搜索、图片搜索、本地搜索和新闻搜索的选项。
我有 :
<tr height="40">
<td width="80%" align="center" ><input id="searchText" type="text" size="100"/></td>
<td class="searchbox" width="20%" align="center"><a href="#" onclick="startSearch()">Search</a></td>
<td width="0%"></td>
</tr>
<td align="center">
<input type="radio" name="searchType" value="true"/> Web
<input type="radio" name="searchType" value="false"/> Image
<input type="radio" name="searchType" value="false"/> News
<input type="radio" name="searchType" value="false"/> Local
</td>
如何使用上述相同的链接过滤此选项。