التركيز على HTML DOM
كائن FocusEvent
الأحداث التي تحدث عندما تحصل العناصر على التركيز أو تفقده ، تنتمي إلى كائن FocusEvent.
خصائص وطرق برنامج FocusEvent
Property/Method | Description |
---|---|
relatedTarget | Returns the element related to the element that triggered the event |
الخصائص والطرق الموروثة
يرث برنامج FocusEvent جميع الخصائص والأساليب من:
أنواع الأحداث
تنتمي أنواع الأحداث هذه إلى كائن FocusEvent:
Event | Description |
---|---|
onblur | The event occurs when an element loses focus |
onfocus | The event occurs when an element gets focus |
onfocusin | The event occurs when an element is about to get focus |
onfocusout | The event occurs when an element is about to lose focus |