<input type="text" name="word" id="word" onpropertychange="alert(this.value)" maxlength="100" />
//当text里的值发生变化里,就调用onpropertychange的JS函数!
<input type="text" name="word" id="word" onpropertychange="alert(this.value)" maxlength="100" />
//当text里的值发生变化里,就调用onpropertychange的JS函数!