onchange event

memolus at googlemail.com memolus at googlemail.com
Sun Mar 8 05:39:03 PDT 2009


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; }


More information about the Es-discuss mailing list