0

我想创建一个html页面,提交按钮中给出的数据应该自动在哪里?转到其他按钮..例如:如果我在提交按钮中输入美国;下面我想要一个谷歌按钮,其中值“美国”应该直接转到谷歌按钮,所以当用户点击谷歌按钮时,应该显示美国的搜索结果。例如:https ://www.google.co.in/?gws_rd=cr&ei=vTtxUpqDGM3arAf-rYHoAw#q=america ;

提交按钮文本应放在谷歌链接中的“=”之后

4

1 回答 1

0

你的问题不清楚,但我想这就是你想要的......

<form action="http://www.google.com/search" method="get">
    Google Search: <input type="text" name="q" />
    <input type="submit" value="Search" />
</form>
于 2013-10-30T17:25:58.460 回答