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