Is it possible to track a variable change in Javascript? I would like to be able to launch a function when a variable has been changed in a class.
<script>
var mywindow = new Box();
mywindow.title = "newtitle";
//Launches mywindow.applyTitle() and changes html
</script>