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