这个是javascript中的代码function resultpage()
{
  var head="http://www.google.com.hk/#hl=zh-CN&newwindow=1&safe=strict";
  var word=document.getElementById(searchword).value;    //获取文本框中用户输入的值
  var foot="&aq=f&aqi=&aql=&gs_sm=e&bav=cf.osb&fp=6fe5b72a0c9d39d0&biw=1363&bih=539";
  var url=head+"&q"+word+"&oq"+word+foot;             //链接字符串
  window.location.href=url;     //打开此链接
} 这个是html中的相关代码
<div id="inputbox" style="text-align:center">
   <!--页面中间的搜索输入框-->
    <input id="searchword" name="searchword" type="text" value="" />
  </div>
 
<input class="but1" onclick="resultpage()" type=button value="Google搜素" >
可是在点击GOOGLE索搜按钮后 为什么什么反应都没有 ??是代码哪儿错了吗??