日期:2014-05-18 浏览次数:20489 次
<script>
window.onload=function()
{
for(var i=0;i<document.getElementsByTagName("input").length;i++)
{
var thisObj=document.getElementsByTagName("input")[i];
if(thisObj.getAttribute("type")=="text")
{
thisObj.onkeydown=function()
{
if(event.keyCode==13)
{
event.keyCode=9;
event.returnValue=false;
$(" <%=btnSearch.ClientID% >").click();
}
}
}
}
}
</script>