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