| คำสั่งที่ใช้ในการกำหนดให้ Event ไม่ทำงาน | ใช้กำหนดให้ Event ไม่ทำงาน คือเหมือนไม่มี Event เกิดขึ้น |
|---|
subject:คำสั่งที่ใช้ในการกำหนดให้ Event ไม่ทำงาน ( ของ browser IE )
syntax:returnValue ();
content:ใช้กำหนดให้ Event ไม่ทำงาน คือเหมือนไม่มี Event เกิดขึ้น
example:function notInputData ( event ) { event.returnValue(); // event.returnValue = false; } var tagText = document.getElementById ( "bamboo" ); tagText.attachEvent ( "onkeypress", notInputData );