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

Reply via email to