怎么写search的函数。比如一个text框,然后onclick直接用百度search 如题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <title>无标题文档</title><script type="text/javascript"> function finds(){ var a=document.getElementById("test").value; window.open("http://www.baidu.com/s?wd="+encodeURIComponent(a)); }</script></head><body><input type="text" id="test"><input type="button" onclick="finds()" value="find"></body>不知这样行不行 试了几个貌似可以 以前看到过一个例子 忘了放哪了 我给你找找 问你一下,为什么用var a=document.getElementByName("test").value;下面用<input type="button" name="test">搜素的时候就会成搜索undefined了 注册表验证出错。。帮忙看看啊 json如何做三维数组的存储? 像淘宝的旺旺、Google的GTalk、雅虎的雅虎通、腾讯的WebQQ等一些主流的在线聊天系统,它们的架构是怎样的? 等待页面效果 JAVASCRIPT 一个计算多个同名文本域的JS代码 如何实现树形下拉框 (?<={0}=)([^ ,]*) ([^ ,]*)(?=,|$)谁能帮忙解释一下这是什么意思 可个根据对应索引获得对象吗? 简单的下拉菜单问题,谁帮我解决我愿意开帖再加200分!!!!! HightCharts 跳过坐标点的问题 jquery的$.each遍历出错 求助!highcharts响应单击事件问题
<script type="text/javascript">
function finds(){
var a=document.getElementById("test").value;
window.open("http://www.baidu.com/s?wd="+encodeURIComponent(a));
}
</script>
</head><body>
<input type="text" id="test">
<input type="button" onclick="finds()" value="find">
</body>
不知这样行不行 试了几个貌似可以 以前看到过一个例子 忘了放哪了 我给你找找