在静态网页中,如何把表单中的数据传送到百度(或其他网站)的表单中啊?
来源:百度知道 编辑:UC知道 时间:2024/06/21 04:06:29
以百度为例,这样写
<input type=text name=wd id=wd size=42 maxlength=100>
<input type="button" value="百度查询" onclick="document.location='http://www.baidu.com/s?wd='+document.getElementById('wd').value"/>
指定form 的action属性