谁帮我改下这段输入框的代码

来源:百度知道 编辑:UC知道 时间:2024/09/25 07:06:24
<input type="text" name="news_mobile" maxLength="13" size="13" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" title="输入号码 按回车可查询" class="pageInp" onkeypress="if(event.keyCode==13){location.href='mobilesenlon.asp?Tel='+value+''; return false;}">

我要的是它按回车后新开窗口.....

<input type="text" name="news_mobile" maxLength="13" size="13" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" title="输入号码 按回车可查询" class="pageInp" onkeypress="if(event.keyCode==13){window.open('http://mobilesenlon.asp?Tel='+value+'','_blank'); return false;}">