firefox 下的 onpropertychange
<html>
<script>
var insObj=new Array();
var timer=null;
function $(id){return document.getElementById(id)};
function changeInspector(id){
insObj[id]=""+$(id).value;
timer=setInterval("inspector('"+id+"')",100);
}
function inspector(sid){
if($(sid).value!=insObj[sid]){
alert("property changed");
insObj[sid]=$(sid).value;
}
}
function doinspector(){
changeInspector("mm");
changeInspector("mm2");
}
</script>
<body onload="doinspector()">
<input type="text" id="mm" value=""></input>
<input type="text" id="mm2" value=""></input>
<input type="button" onclick="document.getElementById('mm').value='aa'" value="改变值"></input>
</body></html>