firefoxのonpropertychange代替案


<script type="text/javascript">
document.getElementById('foo').watch("value",
   function (id, oldval, newval) {
      console.log("foo." + id + " changed from " + oldval + " to " + newval);
      return newval;
   });
</script>