You can use __defineGetter__ and __defineSetter__ on window in current browsers (excluding IE). In ES3.1 you can use Object.defineProperty instead.
On Sun, Mar 8, 2009 at 05:39, [email protected] <[email protected]> wrote: > I like to use an onchange event. > > Example: > > money = 100; > money.onchange = function() { refreshMoneyDisplay(); if(this <= 0) { > alert("You do no have money anymore.") } }; > refreshMoneyDisplay = function() { > document.getElementById("money").value = money; } > _______________________________________________ > Es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > -- erik _______________________________________________ Es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

