直接用百度的api
http://help.baidu.com/question?prod_en=search&class=500&id=1000664
http://help.baidu.com/question?prod_en=search&class=500&id=1000664
解决方案 »
- 请教下kindeditor的问题
- 用extjs时出现'D'为空或不是对象错误是怎么回事?
- [求助]关于两个下拉菜单关联
- 正则表达式如何匹配字符“^”?
- 请教在.aspx中使用treeview,我将AutoPostBack设为False,又想让它在节点变换后,能触发事件,能行吗?应该如何做呢?
- 请大家帮我看一下js代码,关于checkbox的
- 棘手问题...关于产生对象
- 急,怎样引用函数的参数?请大家帮忙!
- 如何用Javascript设定页面中表格的样式?
- 哪位大牛知道如何设置用selectable选中区域的边框啊
- 不知我这样理解对吗
- $(this).unbind("click");$(this).unbind("click");什么意思啊?
onclick="form.submit()"
<style>
.one{
width:100px;
height:20px;
border:1px solid #FF1001;
}
</style>
</head><body><script>
function searchit(){
document.getElementById('bd').onclick=function(e){var v=document.getElementById('search').value;window.open('http://www.baidu.com/s?wd='+v);}
}
</script>
<input name="textfield" type="text" id="search" />
<div onclick="searchit();" id="bd" class="one">百度搜索</div>
</body>