当前位置: 代码迷 >> JavaScript >> 高分回车响应
  详细解决方案

高分回车响应

热度:341   发布时间:2012-02-14 19:19:19.0
高分求救回车响应
<table   border= "0 "   cellpadding= "0 "   cellspacing= "0 "   width= "835 ">
<form       name=select   >
<tr>
<td     background= "images/indexbg.jpg "   border= '0 '   colspan   = "4 "   height= "16 "   class= "title01 "> 书目信息 </td>
</tr>
<tr   bgcolor=   "#EAEAEA ">
<td   align= "right "   class= "menu02 "     > 快速检索: </td>
<td   align= "right "       width=45>
<select   name= "sel "   id= "1 ">
<option   value= "name "> 书名 </option>
<option   value= "index "   selected> 全文检索 </option>
<   lect>
</td>
<td   align= "right "   width   = "20 "   > <input   name= "bookname "   type= "text "   size= "20 "   style= "font-size:   12px "   onblur=formcheck()   onkeypress= "if(window.event.keyCode==13)   btn.fireEvent( 'onclick ') "> </td>

<td   align= "right "   width   = "20 "   > <input   id= "btn "   type= "button "   name= "submit "   value= "   查   询   "   onclick= "JavaScript:window.parent.frames[2].location.replace( 'preselect.php?aa= '+document.select.sel.value+ '&bb= '+document.select.bookname.value); ">
</td>
</tr>
</from>
</table>
为什么回车没去调用btuuon那的链接路径呀..回车后只是传了个下拉框和text的值呀...
http://localhost/doctor/?sel=index&bookname=%D6%DD回车后的路径
我btuuon里面传的是aa,和bb呀



------解决方案--------------------
对于只有一个text-input的页面,ie做了自作聪明的一些处理,
可以往form里加一个 <input style= "display:none; "/> 来回避那些处理
  相关解决方案