<script type="text/javascript">
<!--
if(document.addEventListener){//如果是Firefox
document.addEventListener("keypress",fireFoxHandler, true);
}else{
document.attachEvent("onkeypress",ieHandler);
}
function fireFoxHandler(evt){
//alert("firefox");
if(evt.keyCode==13){
validateLogon();
}
}
function ieHandler(evt){
//alert("IE");
if(evt.keyCode==13){
validateLogon();
}
}
//-->
</script>
<!--
if(document.addEventListener){//如果是Firefox
document.addEventListener("keypress",fireFoxHandler, true);
}else{
document.attachEvent("onkeypress",ieHandler);
}
function fireFoxHandler(evt){
//alert("firefox");
if(evt.keyCode==13){
validateLogon();
}
}
function ieHandler(evt){
//alert("IE");
if(evt.keyCode==13){
validateLogon();
}
}
//-->
</script>