调用的百度和Google的代码如下:
<form method=get action="http://www.google.com/search" target="_blank">
<input type=text name=q size=40 maxlength=255 >
<input type=submit name=btnG value="谷歌搜索">
</form>
<form action="http://www.baidu.com/baidu" target="_blank">
<input type=text name=word size=40>
<input type="submit" value="百度搜索">
</form>
注:
1.调用Google,只是注意method=get 和action="http://www.google.com/search" ,input 文本框的name必须为q,否则提交会失败,返回google搜索首页2.注意输入搜索关键字的文本框name为word,如果是其他的返回百度搜索首页。