<input name="to" class="input" type="text" style="width:90%;"
onkeyup="javascript:setUpdateFlg(this.parentNode.parentNode.rowIndex);"
value=" <bean:write name="OuterCase" property="toCaseNo"/>">
onkeyup="javascript:setUpdateFlg(this.parentNode.parentNode.rowIndex);"
value=" <bean:write name="OuterCase" property="toCaseNo"/>">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>html事件</title>
<script type="text/javascript">
function inputblur(oInput){
var strDefault=oInput.getAttribute("defaultvalue");
var strNewValue=oInput.value;
if(strDefault!=strNewValue){
alert("改变了!");
}else{
alert("没改变!");
}
}
</script>
</head>
<body>
abc和defaultvalue的值有后台通过,〈bean;write/>写入
<input type="text" defaultvalue="abc" value="abc" onblur="inputblur(this)"/></body>
</html>