| onchange | ใช้กำหนดให้ function ทำงานเมื่อ ข้อมูลใน text เปลี่ยนแปลง |
|---|
property:onchange = function;
return type:void
content:ใช้กำหนดให้ function ทำงานเมื่อ ข้อมูลใน text เปลี่ยนแปลง
example:var tagText = document.getElementById ( "bamboo" ); tagText.onchange = function() { alert ( "text be changed" ); }